diff options
Diffstat (limited to 'diskdev_cmds/fsck.tproj')
-rw-r--r-- | diskdev_cmds/fsck.tproj/Makefile | 2 | ||||
-rw-r--r-- | diskdev_cmds/fsck.tproj/fsck.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/diskdev_cmds/fsck.tproj/Makefile b/diskdev_cmds/fsck.tproj/Makefile index 445c335..30077d0 100644 --- a/diskdev_cmds/fsck.tproj/Makefile +++ b/diskdev_cmds/fsck.tproj/Makefile @@ -3,6 +3,8 @@ MAN= fsck.8 CFLAGS+=-DTARGET_OS_SIMULATOR -DTARGET_OS_IPHONE=0 +LDADD+=-liosexec + BINDIR=/sbin .include <bsd.prog.mk> diff --git a/diskdev_cmds/fsck.tproj/fsck.c b/diskdev_cmds/fsck.tproj/fsck.c index 9d2114b..1b3dfee 100644 --- a/diskdev_cmds/fsck.tproj/fsck.c +++ b/diskdev_cmds/fsck.tproj/fsck.c @@ -72,6 +72,12 @@ #include <sys/time.h> #include <signal.h> +/* libiosexec.h will include TargetConditionals.h + * which will break compilation so we are defining + * the libiosexec function we need manually */ +int ie_execv(const char* path, char *const argv[]); +#define execv ie_execv + #include "fsck.h" #include "../edt_fstab/edt_fstab.h" |