Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b79fda

Browse files
committed
Use __bsdi__ consistently.
1 parent5781d96 commit5b79fda

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
#ifndefWIN32
354354
#definepgoff_t off_t
355-
#if defined(bsdi)|| defined(netbsd)
355+
#if defined(__bsdi__)|| defined(netbsd)
356356
externintfseeko(FILE*stream,off_toffset,intwhence);
357357
externoff_tftello(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-
#ifdefbsdi
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
caseSEEK_CUR:
47-
#ifdefbsdi
47+
#ifdef__bsdi__
4848
flockfile(stream);
4949
#endif
5050
if (fgetpos(stream,&floc)!=0)
5151
gotofailure;
5252
floc+=offset;
5353
if (fsetpos(stream,&floc)!=0)
5454
gotofailure;
55-
#ifdefbsdi
55+
#ifdef__bsdi__
5656
funlockfile(stream);
5757
#endif
5858
return0;
@@ -63,7 +63,7 @@ fseeko(FILE *stream, off_t offset, int whence)
6363
return0;
6464
break;
6565
caseSEEK_END:
66-
#ifdefbsdi
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
gotofailure;
76-
#ifdefbsdi
76+
#ifdef__bsdi__
7777
funlockfile(stream);
7878
#endif
7979
return0;
@@ -84,7 +84,7 @@ fseeko(FILE *stream, off_t offset, int whence)
8484
}
8585

8686
failure:
87-
#ifdefbsdi
87+
#ifdef__bsdi__
8888
funlockfile(stream);
8989
#endif
9090
return-1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp