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:
Huang Rui 2026-03-27 11:45:32 +08:00
parent ac3ef217c3
commit f20865a5ea
1 changed files with 3 additions and 0 deletions

View File

@ -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