Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ad24b8e

Browse files
committed
remove unneeded defines for uid_t and gid_t, which conflict with perl's typedefs.
1 parent c08c852 commit ad24b8e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/include/port/win32.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.49 2005/10/25 15:15:16 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.50 2006/01/10 01:01:03 adunstan Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -165,15 +165,11 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov
165165
/*
166166
* Supplement to <sys/types.h>.
167167
*
168-
* Perl already has conflicting defines for uid_t and gid_t.
168+
* Perl already has typedefs for uid_t and gid_t.
169169
*/
170170
#ifndef PLPERL_HAVE_UID_GID
171171
typedef int uid_t;
172172
typedef int gid_t;
173-
#else
174-
/* These are redefined by perl. */
175-
#define uid_t int
176-
#define gid_t int
177173
#endif
178174
typedef long key_t;
179175

0 commit comments

Comments
 (0)