aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/options.c b/options.c
index e45c2b7..e05c2cc 100644
--- a/options.c
+++ b/options.c
@@ -16,16 +16,17 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/
-#define _XOPEN_SOURCE
-#define _IMAGE_CONFIG
+#define _POSIX_C_SOURCE 2 /* for getopt(3) */
+#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include "options.h"
#include "util.h"
+
+#define _IMAGE_CONFIG
#include "config.h"
options_t _options;