Skip to content

Commit 5b79fda

Browse files
committed
Use __bsdi__ consistently.
1 parent 5781d96 commit 5b79fda

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/include/port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.132 2010/04/23 23:21:44 rhaas Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.133 2010/05/15 10:14:20 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -352,7 +352,7 @@ extern char *crypt(const char *key, const char *setting);
352352
/* WIN32 handled in port/win32.h */
353353
#ifndef WIN32
354354
#define pgoff_t off_t
355-
#if defined(bsdi) || defined(netbsd)
355+
#if defined(__bsdi__) || defined(netbsd)
356356
extern int fseeko(FILE *stream, off_t offset, int whence);
357357
extern off_t ftello(FILE *stream);
358358
#endif

src/port/fseeko.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.24 2010/01/02 16:58:13 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/fseeko.c,v 1.25 2010/05/15 10:14:20 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -21,7 +21,7 @@
2121

2222
#include "c.h"
2323

24-
#ifdef bsdi
24+
#ifdef __bsdi__
2525
#include <pthread.h>
2626
#endif
2727
#include <sys/stat.h>
@@ -44,15 +44,15 @@ fseeko(FILE *stream, off_t offset, int whence)
4444
switch (whence)
4545
{
4646
case SEEK_CUR:
47-
#ifdef bsdi
47+
#ifdef __bsdi__
4848
flockfile(stream);
4949
#endif
5050
if (fgetpos(stream, &floc) != 0)
5151
goto failure;
5252
floc += offset;
5353
if (fsetpos(stream, &floc) != 0)
5454
goto failure;
55-
#ifdef bsdi
55+
#ifdef __bsdi__
5656
funlockfile(stream);
5757
#endif
5858
return 0;
@@ -63,7 +63,7 @@ fseeko(FILE *stream, off_t offset, int whence)
6363
return 0;
6464
break;
6565
case SEEK_END:
66-
#ifdef bsdi
66+
#ifdef __bsdi__
6767
flockfile(stream);
6868
#endif
6969
fflush(stream); /* force writes to fd for stat() */
@@ -73,7 +73,7 @@ fseeko(FILE *stream, off_t offset, int whence)
7373
floc += offset;
7474
if (fsetpos(stream, &floc) != 0)
7575
goto failure;
76-
#ifdef bsdi
76+
#ifdef __bsdi__
7777
funlockfile(stream);
7878
#endif
7979
return 0;
@@ -84,7 +84,7 @@ fseeko(FILE *stream, off_t offset, int whence)
8484
}
8585

8686
failure:
87-
#ifdef bsdi
87+
#ifdef __bsdi__
8888
funlockfile(stream);
8989
#endif
9090
return -1;

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