limitations under the License.
*/
-#define _BSD_SOURCE /* see readdir */
+#define _DEFAULT_SOURCE
#include <limits.h>
#include <sys/types.h>
#else
#include <sys/wait.h>
+#include <stdlib.h>
extern char **environ;
args[0] = "zip";
args[1] = "-q";
args[2] = "-r";
- args[3] = workdir;
- args[4] = zipfile;
+ args[3] = zipfile;
+ args[4] = workdir;
args[5] = NULL;
return zrun(PATH_TO_ZIP, args);