Fix autoconf config issues using new file sfconfig.h.

This commit is contained in:
Erik de Castro Lopo 2005-09-03 06:12:30 +00:00
parent fe7d03cd59
commit f3ea80efe5
83 changed files with 116 additions and 120 deletions

View File

@ -4,6 +4,10 @@
Replace floating point equality comparisons with greater/less comparisons.
Found by John Pavel using the Intel compiler.
* src/sfconfig.h
New file to clean up issues surrounding autoconf generated preprocessor
symbols.
* src/*.(c|h) tests/*.(c|tpl) examples/*.c
Fixed a bunch of other stuff found by John Pavel using the Intel compiler.

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -11,7 +11,7 @@ OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
EXTRA_DIST = sndfile.h.in config.h.in test_endswap.tpl test_endswap.def \
Symbols.linux Symbols.darwin libsndfile.def create_symbols_file.py
noinst_HEADERS = common.h sfendian.h float_cast.h wav_w64.h au.h sf_unistd.h
noinst_HEADERS = common.h sfconfig.h sfendian.h float_cast.h wav_w64.h au.h sf_unistd.h
noinst_PROGRAMS = test_endswap test_file_io test_log_printf

View File

@ -17,7 +17,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <fcntl.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <string.h>

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -21,7 +21,7 @@
#include <math.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "common.h"
static SF_FORMAT_INFO const simple_formats [] =

View File

@ -19,7 +19,7 @@
#ifndef SNDFILE_COMMON_H
#define SNDFILE_COMMON_H
#include "config.h"
#include "sfconfig.h"
#include <stdlib.h>

View File

@ -19,7 +19,7 @@
#include <stdlib.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "float_cast.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -31,7 +31,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -22,12 +22,12 @@
** large file support is enabled.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
@ -488,7 +488,7 @@ psf_open_fd (const char * pathname, int open_mode)
/*
** Sanity check. If everything is OK, this test and the printfs will
** be optimised out. This is meant to catch the problems caused by
** "config.h" being included after <stdio.h>.
** "sfconfig.h" being included after <stdio.h>.
*/
if (sizeof (off_t) != sizeof (sf_count_t))
{ puts ("\n\n*** Fatal error : sizeof (off_t) != sizeof (sf_count_t)") ;
@ -544,7 +544,7 @@ psf_log_syserr (SF_PRIVATE *psf, int error)
void
psf_fsync (SF_PRIVATE *psf)
{
#ifdef HAVE_FSYNC
#if HAVE_FSYNC
if (psf->mode == SFM_WRITE || psf->mode == SFM_RDWR)
fsync (psf->filedes) ;
#else

View File

@ -24,7 +24,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "common.h"

View File

@ -21,7 +21,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "float_cast.h"

View File

@ -43,12 +43,12 @@
** long int lrint (double x) ;
*/
#include "config.h"
#include "sfconfig.h"
/*
** The presence of the required functions are detected during the configure
** process and the values HAVE_LRINT and HAVE_LRINTF are set accordingly in
** the config.h file.
** the sfconfig.h file.
*/
#define HAVE_LRINT_REPLACEMENT 0

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -21,7 +21,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -19,7 +19,7 @@
#include <stdlib.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdlib.h>
#include <string.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdlib.h>
#include <string.h>

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "float_cast.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "float_cast.h"

View File

@ -21,7 +21,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -29,7 +29,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -17,7 +17,7 @@
*/
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -19,7 +19,7 @@
#include <stdio.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "common.h"
/*------------------------------------------------------------------------------

View File

@ -22,7 +22,7 @@
#include <stdarg.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -33,7 +33,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -40,7 +40,7 @@
#ifndef HAVE_ALSA_ASOUNDLIB_H
#define HAVE_ALSA_ASOUNDLIB_H 0
#endif
#ifndef HAVE_BYTESWAP_H
#define HAVE_BYTESWAP_H 0
#endif
@ -57,10 +57,6 @@
#define HAVE_FSYNC 0
#endif
#ifndef HAVE_LOCALE_H
#define HAVE_LOCALE_H 0
#endif
#ifndef HAVE_LRINT
#define HAVE_LRINT 0
#endif
@ -81,10 +77,6 @@
#define HAVE_PWRITE 0
#endif
#ifndef HAVE_SETLOCALE
#define HAVE_SETLOCALE 0
#endif
#ifndef HAVE_SQLITE3
#define HAVE_SQLITE3 0
#endif

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#if HAVE_STDINT_H
#include <stdint.h>
@ -60,7 +60,7 @@ typedef __int64 int64_t ;
#elif (CPU_IS_BIG_ENDIAN == 1)
#define MAKE_MARKER(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
#else
#error "Target CPU endian-ness unknown. May need to hand edit src/config.h"
#error "Target CPU endian-ness unknown. May need to hand edit src/sfconfig.h"
#endif
/*
@ -91,7 +91,7 @@ typedef __int64 int64_t ;
#define H2LE_INT(x) ENDSWAP_INT (x)
#else
#error "Target CPU endian-ness unknown. May need to hand edit src/config.h"
#error "Target CPU endian-ness unknown. May need to hand edit src/sfconfig.h"
#endif
#define LET2H_SHORT_PTR(x) ((x) [1] + ((x) [2] << 8))

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdlib.h>
#include <string.h>

View File

@ -21,7 +21,7 @@
#include <math.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "common.h"
#define STRINGS_DEBUG 0

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <string.h>

View File

@ -17,12 +17,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,12 +16,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -22,7 +22,7 @@
#include <stdarg.h>
#include <errno.h>
#include "config.h"
#include "sfconfig.h"
/*
** This is a bit rough, but it is the nicest way to do it.

View File

@ -29,7 +29,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -24,7 +24,7 @@
** Utterly woeful.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -34,7 +34,7 @@
#include <string.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "float_cast.h"
#include "common.h"

View File

@ -22,7 +22,7 @@
#include <time.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "wav_w64.h"

View File

@ -25,7 +25,7 @@
#include <time.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "wav_w64.h"

View File

@ -23,7 +23,7 @@
#include <time.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"
#include "wav_w64.h"

View File

@ -22,7 +22,7 @@
#include <ctype.h>
#include "sndfile.h"
#include "config.h"
#include "sfconfig.h"
#include "sfendian.h"
#include "common.h"

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -17,12 +17,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -17,13 +17,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,12 +16,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -17,7 +17,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -17,7 +17,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
@ -26,7 +26,7 @@
#include <sys/stat.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
@ -25,7 +25,7 @@
#include <sys/stat.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,12 +16,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,13 +16,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -17,13 +17,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,14 +16,14 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -21,7 +21,7 @@
** This is a test program which tests reading from and writing to pipes.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
@ -38,7 +38,7 @@ main (void)
#else
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,14 +16,14 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -17,13 +17,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,11 +16,11 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,12 +16,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,14 +16,14 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -21,13 +21,13 @@
** stdout.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,14 +16,14 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,14 +16,14 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,12 +16,12 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -88,12 +88,12 @@ void test_seek_or_die
[+ == c +]
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -16,7 +16,7 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -16,13 +16,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include "sndfile.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif

View File

@ -17,13 +17,13 @@
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include "sfconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#endif