Include mach-o/dyld.h for _NSGetExecutablePath on macOS
driver/main.c uses _NSGetExecutablePath in the __APPLE__ code path but does not include the header that declares it, causing a build failure on macOS. Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
ac3ef217c3
commit
f20865a5ea
|
|
@ -69,6 +69,9 @@ const char HELP[] =
|
|||
# include <libiberty.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
# include <mach-o/dyld.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef HAVE_GETOPT_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue