Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ cat > $test.c <<EOF
int main() { return 0; }
EOF
if try $CC -c $CFLAGS $test.c; then
sed < zconf.h "/^#if HAVE_UNISTD_H-0.* may be/s/ HAVE_UNISTD_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
sed < zconf.h "/^#if defined(HAVE_UNISTD_H).* may be/s/ defined.*-0\(.*\) may be/ 1\1 was changed to/" > zconf.temp.h
mv zconf.temp.h zconf.h
echo "Checking for unistd.h... Yes." | tee -a configure.log
else
Expand All @@ -665,7 +665,7 @@ cat > $test.c <<EOF
int main() { return 0; }
EOF
if try $CC -c $CFLAGS $test.c; then
sed < zconf.h "/^#if HAVE_STDARG_H-0.* may be/s/ HAVE_STDARG_H-0\(.*\) may be/ 1\1 was/" > zconf.temp.h
sed < zconf.h "/^#if defined(HAVE_STDARG_H).* may be/s/ defined.*-0\(.*\) may be/ 1\1 was changed to/" > zconf.temp.h
mv zconf.temp.h zconf.h
echo "Checking for stdarg.h... Yes." | tee -a configure.log
else
Expand Down
4 changes: 2 additions & 2 deletions zconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ typedef uLong FAR uLongf;
typedef unsigned long z_crc_t;
#endif

#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
#if defined(HAVE_UNISTD_H) && HAVE_UNISTD_H-0 /* may be #if 1 after configure */
# define Z_HAVE_UNISTD_H
#endif

#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
#if defined(HAVE_STDARG_H) && HAVE_STDARG_H-0 /* may be #if 1 after configure */
# define Z_HAVE_STDARG_H
#endif

Expand Down
4 changes: 2 additions & 2 deletions zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,11 @@ typedef uLong FAR uLongf;
typedef unsigned long z_crc_t;
#endif

#if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
#if defined(HAVE_UNISTD_H) && HAVE_UNISTD_H-0 /* may be #if 1 after configure */
# define Z_HAVE_UNISTD_H
#endif

#if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
#if defined(HAVE_STDARG_H) && HAVE_STDARG_H-0 /* may be #if 1 after configure */
# define Z_HAVE_STDARG_H
#endif

Expand Down