Skip to content

Commit 0c0a176

Browse files
committed
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.
1 parent 3280cba commit 0c0a176

File tree

7 files changed

+2
-27
lines changed

7 files changed

+2
-27
lines changed

src/include/libpq/libpq-fs.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: libpq-fs.h,v 1.9 2000/01/26 05:58:12 momjian Exp $
10+
* $Id: libpq-fs.h,v 1.10 2000/10/28 22:53:15 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -28,18 +28,6 @@ struct pgdirent
2828
char d_name[MAXNAMLEN + 1];
2929
};
3030

31-
/*
32-
* SysV struct dirent doesn't have d_namlen.
33-
* This counts on d_name being last, which is moderately safe (ha) since
34-
* it's the variable-length part of the structure.
35-
*/
36-
#ifdef SYSV_DIRENT
37-
#define D_NAMLEN(dp) \
38-
((dp)->d_reclen - offsetof(struct dirent, d_name[0]))
39-
#else /* SYSV_DIRENT */
40-
#define D_NAMLEN(dp) \
41-
((dp)->d_namlen)
42-
#endif /* SYSV_DIRENT */
4331

4432
/* for stat(2) */
4533
#ifndef S_IRUSR

src/include/port/irix5.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#define USE_POSIX_TIME
2-
#define NO_EMPTY_STMTS
3-
#define SYSV_DIRENT
42
#define HAS_TEST_AND_SET
53
typedef unsigned long slock_t;

src/include/port/sco.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#define DISABLE_COMPLEX_MACRO
66

77
#define USE_POSIX_TIME
8-
#define NO_EMPTY_STMTS
9-
#define SYSV_DIRENT
108

119
#define HAS_TEST_AND_SET
1210
#define NEED_I386_TAS_ASM
@@ -15,8 +13,6 @@
1513

1614
typedef unsigned char slock_t;
1715

18-
#define DISABLE_COMPLEX_MACRO
19-
2016
/***************************************************************
2117
* The following include will get the needed prototype for the
2218
* strcasecmp() function.

src/include/port/solaris.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.1 2000/10/10 21:22:26 petere Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.2 2000/10/28 22:53:17 petere Exp $ */
22

33
#define USE_POSIX_TIME
4-
#define NO_EMPTY_STMTS
5-
#define SYSV_DIRENT
64
#define HAS_TEST_AND_SET
75
typedef unsigned char slock_t;
86

src/include/port/svr4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#define USE_POSIX_TIME
2-
#define NO_EMPTY_STMTS
3-
#define SYSV_DIRENT
42

53
#ifndef BYTE_ORDER
64
#ifdef MIPSEB

src/include/port/univel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#define USE_POSIX_TIME
2-
#define NO_EMPTY_STMTS
3-
#define SYSV_DIRENT
42

53
#define HAS_TEST_AND_SET
64
#define NEED_I386_TAS_ASM

src/include/port/unixware.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#define USE_POSIX_TIME
2-
#define SYSV_DIRENT
32

43
#define HAS_TEST_AND_SET
54
#define NEED_I386_TAS_ASM

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy