mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
As we don't use struct dirent, the #define SYSV_DIRENT is useless. If we
every do need it we'd better use AC_HEADER_DIRENT from Autoconf. #define NO_EMPTY_STMTS is completely unused.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: libpq-fs.h,v 1.9 2000/01/26 05:58:12 momjian Exp $
|
* $Id: libpq-fs.h,v 1.10 2000/10/28 22:53:15 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -28,18 +28,6 @@ struct pgdirent
|
|||||||
char d_name[MAXNAMLEN + 1];
|
char d_name[MAXNAMLEN + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* SysV struct dirent doesn't have d_namlen.
|
|
||||||
* This counts on d_name being last, which is moderately safe (ha) since
|
|
||||||
* it's the variable-length part of the structure.
|
|
||||||
*/
|
|
||||||
#ifdef SYSV_DIRENT
|
|
||||||
#define D_NAMLEN(dp) \
|
|
||||||
((dp)->d_reclen - offsetof(struct dirent, d_name[0]))
|
|
||||||
#else /* SYSV_DIRENT */
|
|
||||||
#define D_NAMLEN(dp) \
|
|
||||||
((dp)->d_namlen)
|
|
||||||
#endif /* SYSV_DIRENT */
|
|
||||||
|
|
||||||
/* for stat(2) */
|
/* for stat(2) */
|
||||||
#ifndef S_IRUSR
|
#ifndef S_IRUSR
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define NO_EMPTY_STMTS
|
|
||||||
#define SYSV_DIRENT
|
|
||||||
#define HAS_TEST_AND_SET
|
#define HAS_TEST_AND_SET
|
||||||
typedef unsigned long slock_t;
|
typedef unsigned long slock_t;
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
#define DISABLE_COMPLEX_MACRO
|
#define DISABLE_COMPLEX_MACRO
|
||||||
|
|
||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define NO_EMPTY_STMTS
|
|
||||||
#define SYSV_DIRENT
|
|
||||||
|
|
||||||
#define HAS_TEST_AND_SET
|
#define HAS_TEST_AND_SET
|
||||||
#define NEED_I386_TAS_ASM
|
#define NEED_I386_TAS_ASM
|
||||||
@ -15,8 +13,6 @@
|
|||||||
|
|
||||||
typedef unsigned char slock_t;
|
typedef unsigned char slock_t;
|
||||||
|
|
||||||
#define DISABLE_COMPLEX_MACRO
|
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* The following include will get the needed prototype for the
|
* The following include will get the needed prototype for the
|
||||||
* strcasecmp() function.
|
* strcasecmp() function.
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.1 2000/10/10 21:22:26 petere Exp $ */
|
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.2 2000/10/28 22:53:17 petere Exp $ */
|
||||||
|
|
||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define NO_EMPTY_STMTS
|
|
||||||
#define SYSV_DIRENT
|
|
||||||
#define HAS_TEST_AND_SET
|
#define HAS_TEST_AND_SET
|
||||||
typedef unsigned char slock_t;
|
typedef unsigned char slock_t;
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define NO_EMPTY_STMTS
|
|
||||||
#define SYSV_DIRENT
|
|
||||||
|
|
||||||
#ifndef BYTE_ORDER
|
#ifndef BYTE_ORDER
|
||||||
#ifdef MIPSEB
|
#ifdef MIPSEB
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define NO_EMPTY_STMTS
|
|
||||||
#define SYSV_DIRENT
|
|
||||||
|
|
||||||
#define HAS_TEST_AND_SET
|
#define HAS_TEST_AND_SET
|
||||||
#define NEED_I386_TAS_ASM
|
#define NEED_I386_TAS_ASM
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
#define SYSV_DIRENT
|
|
||||||
|
|
||||||
#define HAS_TEST_AND_SET
|
#define HAS_TEST_AND_SET
|
||||||
#define NEED_I386_TAS_ASM
|
#define NEED_I386_TAS_ASM
|
||||||
|
Reference in New Issue
Block a user