Index: utils/ofzip/OFZIP.h ================================================================== --- utils/ofzip/OFZIP.h +++ utils/ofzip/OFZIP.h @@ -12,14 +12,23 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ +#include + #import "OFObject.h" #import "OFString.h" #import "Archive.h" + +#ifndef S_IRWXG +# define S_IRWXG 0 +#endif +#ifndef S_IRWXO +# define S_IRWXO 0 +#endif @interface OFZIP: OFObject { int8_t _overwrite; @public Index: utils/ofzip/ZIPArchive.m ================================================================== --- utils/ofzip/ZIPArchive.m +++ utils/ofzip/ZIPArchive.m @@ -28,17 +28,10 @@ #import "OFZIP.h" #import "OFInvalidFormatException.h" #import "OFOpenItemFailedException.h" -#ifndef S_IRWXG -# define S_IRWXG 0 -#endif -#ifndef S_IRWXO -# define S_IRWXO 0 -#endif - static OFZIP *app; static void setPermissions(OFString *path, OFZIPArchiveEntry *entry) {