mirror of
https://github.com/json-c/json-c.git
synced 2026-11-05 21:20:16 +08:00
apps: use CMake check for getopt.h
Add CMake detection for getopt.h and update json_parse.c to include it only when HAVE_GETOPT_H is defined. Fixes AIX build failure.
This commit is contained in:
1 parent
243ed1a51c
commit
a7b34a299b
2 files changed
+5
No files matched your search
@@ -1,7 +1,9 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in new issue
Block a user