8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Added / replaced ifdef's around unistd.h with the define HAVE_UNISTD_H

generated by autoconf.
This commit is contained in:
eku 2002-08-26 12:18:16 +00:00
parent d7db60a22c
commit f359a95a52
10 changed files with 19 additions and 7 deletions

View File

@ -51,7 +51,7 @@
#if (defined WIN_NT || (defined PC_PLATFORM && !defined NETWARE_386)) #if (defined WIN_NT || (defined PC_PLATFORM && !defined NETWARE_386))
#include <io.h> #include <io.h>
#endif #endif
#ifdef unix #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -185,7 +185,9 @@ typedef struct mnt {
/* Unix specific stuff */ /* Unix specific stuff */
#ifdef UNIX #ifdef UNIX
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/file.h> #include <sys/file.h>

View File

@ -40,7 +40,9 @@
#include "../jrd/common.h" #include "../jrd/common.h"
#include <stdarg.h> #include <stdarg.h>
#ifndef WIN_NT #ifndef WIN_NT
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#ifdef DARWIN #ifdef DARWIN
#include </usr/include/pwd.h> #include </usr/include/pwd.h>
#else #else

View File

@ -66,7 +66,7 @@
# endif # endif
#endif #endif
#ifdef sparc #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -5,7 +5,9 @@
#include "../jrd/os/mod_loader.h" #include "../jrd/os/mod_loader.h"
#include "../../common.h" #include "../../common.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <dlfcn.h> #include <dlfcn.h>

View File

@ -52,7 +52,7 @@ extern int BeginThread(void (*__func) (void *), void *__stackP,
#define STACK_SIZE 128000 #define STACK_SIZE 128000
#endif #endif
#ifdef UNIX #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -27,7 +27,7 @@
* *
*/ */
/* /*
$Id: y-valve.cpp,v 1.4 2002-04-04 11:37:14 dimitr Exp $ $Id: y-valve.cpp,v 1.5 2002-08-26 12:18:12 eku Exp $
*/ */
#include "firebird.h" #include "firebird.h"
@ -81,9 +81,11 @@ $Id: y-valve.cpp,v 1.4 2002-04-04 11:37:14 dimitr Exp $
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#if !(defined SEEK_END && defined F_OK) #if !(defined SEEK_END && defined F_OK)
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#endif #endif
#endif
#ifdef WIN_NT #ifdef WIN_NT
#include <windows.h> #include <windows.h>
@ -6253,4 +6255,4 @@ BOOLEAN WHY_get_shutdown()
#endif /* SERVER_SHUTDOWN && !SUPERCLIENT && !REQUESTER */ #endif /* SERVER_SHUTDOWN && !SUPERCLIENT && !REQUESTER */
} // extern "C" } // extern "C"

View File

@ -54,7 +54,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <sys/param.h> #include <sys/param.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -20,7 +20,7 @@
* *
* All Rights Reserved. * All Rights Reserved.
* Contributor(s): ______________________________________. * Contributor(s): ______________________________________.
* $Id: srvrmgr.cpp,v 1.3 2001-12-24 02:50:53 tamlin Exp $ * $Id: srvrmgr.cpp,v 1.4 2002-08-26 12:18:12 eku Exp $
*/ */
#include "firebird.h" #include "firebird.h"
@ -28,7 +28,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>

View File

@ -71,7 +71,7 @@
#include <signal.h> #include <signal.h>
#endif #endif
#ifdef sparc #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif