Revert "The build framework of zip adds -DNO_DIR to CFLAGS after" 73/312673/1
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 13 Jun 2024 01:55:22 +0000 (10:55 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 13 Jun 2024 02:08:01 +0000 (11:08 +0900)
This reverts commit d1affffac17e541a39efab2e61e9ab674db37270.

Change-Id: I5585dc06edf2032525bfad5efc461a1ee79046b0

unix/configure
unix/unix.c

index d094275..38974c5 100755 (executable)
@@ -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
 
index 95ea10e..bc6dad4 100644 (file)
@@ -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;