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
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ case "$1" in
--sysconfdir=*) echo "ignored option: --sysconfdir" | tee -a configure.log; shift ;;
--localstatedir=*) echo "ignored option: --localstatedir" | tee -a configure.log; shift ;;
-c* | --const) zconst=1; shift ;;
-w* | --warn) warn=$((warn + 1)); shift ;;
-w* | --warn) warn=`expr $warn + 1`; shift ;;
-d* | --debug) debug=1; shift ;;
--sanitize) address=1; shift ;;
--address) address=1; shift ;;
Expand Down
10 changes: 8 additions & 2 deletions gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@
# include <limits.h>
#endif

#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112L
#ifdef __sun
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#else
#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112L
#endif
#endif
#include <fcntl.h>

Expand Down
10 changes: 8 additions & 2 deletions test/minigzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@

/* @(#) $Id$ */

#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112L
#ifdef __sun
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#else
#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112L
#endif
#endif

#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS)
Expand Down