Skip to content

Commit 7108497

Browse files
committed
Check that HAVE_UNISTD_H and HAVE_STDARG_H are not defined as 0.
1 parent 00161ef commit 7108497

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ cat > $test.c <<EOF
611611
int main() { return 0; }
612612
EOF
613613
if try $CC -c $CFLAGS $test.c; then
614-
sed < zconf.h "/^#ifdef HAVE_UNISTD_H.* may be/s/def HAVE_UNISTD_H\(.*\) may be/ 1\1 was/" > zconf.temp.h
614+
sed < zconf.h "/^#if HAVE_UNISTD_H-0.* may be/s/ HAVE_UNISTD_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
615615
mv zconf.temp.h zconf.h
616616
echo "Checking for unistd.h... Yes." | tee -a configure.log
617617
else
@@ -626,7 +626,7 @@ cat > $test.c <<EOF
626626
int main() { return 0; }
627627
EOF
628628
if try $CC -c $CFLAGS $test.c; then
629-
sed < zconf.h "/^#ifdef HAVE_STDARG_H.* may be/s/def HAVE_STDARG_H\(.*\) may be/ 1\1 was/" > zconf.temp.h
629+
sed < zconf.h "/^#if HAVE_STDARG_H-0.* may be/s/ HAVE_STDARG_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
630630
mv zconf.temp.h zconf.h
631631
echo "Checking for stdarg.h... Yes." | tee -a configure.log
632632
else

zconf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,11 @@ typedef uLong FAR uLongf;
436436
typedef unsigned long z_crc_t;
437437
#endif
438438

439-
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
439+
#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
440440
# define Z_HAVE_UNISTD_H
441441
#endif
442442

443-
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
443+
#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
444444
# define Z_HAVE_STDARG_H
445445
#endif
446446

zconf.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,11 @@ typedef uLong FAR uLongf;
436436
typedef unsigned long z_crc_t;
437437
#endif
438438

439-
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
439+
#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
440440
# define Z_HAVE_UNISTD_H
441441
#endif
442442

443-
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
443+
#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
444444
# define Z_HAVE_STDARG_H
445445
#endif
446446

0 commit comments

Comments
 (0)