From 565c59607b789d346bbea5c4fb3c4f0d60a7baac Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 13 Jun 2024 10:55:22 +0900 Subject: [PATCH] Revert "The build framework of zip adds -DNO_DIR to CFLAGS after" This reverts commit d1affffac17e541a39efab2e61e9ab674db37270. Change-Id: I5585dc06edf2032525bfad5efc461a1ee79046b0 --- unix/configure | 3 +++ unix/unix.c | 1 + 2 files changed, 4 insertions(+) diff --git a/unix/configure b/unix/configure index d094275..38974c5 100755 --- a/unix/configure +++ b/unix/configure @@ -2373,6 +2373,9 @@ else if [ ${OPT} ]; then echo " Found: ${OPT}" LFLAGS="${LFLAGS2} ${OPT}" + else + echo ' Found none (NO_DIR).' + CFLAGS_TST="${CFLAGS_TST} -DNO_DIR" fi fi diff --git a/unix/unix.c b/unix/unix.c index 95ea10e..bc6dad4 100644 --- a/unix/unix.c +++ b/unix/unix.c @@ -149,6 +149,7 @@ static ZCONST char CannotSetTimestamps[] = #define opendir(path) fopen(path,"r") #define closedir(dir) fclose(dir) +typedef FILE DIR; typedef struct zdir { FILE *dirhandle; struct dirent *entry; -- 2.7.4