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

Commit b4456e6

Browse files
committed
Define lstat with parameters, rather than just redefining the symbol.
1 parent 2e88d29 commit b4456e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/port/win32.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.30 2004/08/31 11:25:33 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.31 2004/08/31 11:29:56 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -206,7 +206,7 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov
206206
/*
207207
* Supplement to <sys/stat.h>.
208208
*/
209-
#define lstat stat
209+
#define lstat(path, sb) stat((path), (sb))
210210

211211
/*
212212
* Supplement to <errno.h>.

0 commit comments

Comments
 (0)