aboutsummaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-zip.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-29 15:23:40 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-29 15:31:43 +0100
commitdf95c86712d96754a4d660e9ddf98bdbad746cf4 (patch)
tree09532142b4e963c90bd8e25af05132437c63aec9 /src/wgtpkg-zip.c
parent36a5034839183d1c49b63e4cbd955004bf46a8b3 (diff)
fix some warnings
Change-Id: Ibcdc33feb279309633a78b51d59d26846b259003
Diffstat (limited to 'src/wgtpkg-zip.c')
-rw-r--r--src/wgtpkg-zip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wgtpkg-zip.c b/src/wgtpkg-zip.c
index 8168fe7..4b87a41 100644
--- a/src/wgtpkg-zip.c
+++ b/src/wgtpkg-zip.c
@@ -16,7 +16,7 @@
limitations under the License.
*/
-#define _BSD_SOURCE /* see readdir */
+#define _DEFAULT_SOURCE
#include <limits.h>
#include <sys/types.h>
@@ -353,6 +353,7 @@ int zwrite(const char *zipfile)
#else
#include <sys/wait.h>
+#include <stdlib.h>
extern char **environ;