summaryrefslogtreecommitdiffstats
path: root/bin/ykfde-cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ykfde-cpio.c')
-rw-r--r--bin/ykfde-cpio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ykfde-cpio.c b/bin/ykfde-cpio.c
index 860c93b..996af04 100644
--- a/bin/ykfde-cpio.c
+++ b/bin/ykfde-cpio.c
@@ -8,8 +8,11 @@
* $ gcc -o mkcpio mkcpio.c -larchive
*/
-#ifndef _DEFAULT_SOURCE
-#define _DEFAULT_SOURCE
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE
+# ifndef _XOPEN_SOURCE_EXTENDED
+# define _XOPEN_SOURCE_EXTENDED
+# endif
#endif
#include <dirent.h>