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

Commit4f8db3e

Browse files
committed
FreeBSD doesn't require the dl{open,close,sym,error} functions, as they are
already included in the system libraries.Used if !defined(__FreeBSD__) to single FreeBSD out from the other BSD44derived OSs
1 parent24632b0 commit4f8db3e

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

‎src/backend/port/BSD44_derived/dl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ static char sccsid[] = "@(#)dl.c5.4 (Berkeley) 2/23/91";
4545

4646
#include"port-protos.h"
4747

48+
#if !defined(__FreeBSD__)
49+
4850
staticcharerror_message[BUFSIZ];
4951

5052
char*
@@ -101,3 +103,5 @@ BSD44_derived_dlclose(void *handle)
101103
dlclose(handle);
102104
#endif
103105
}
106+
107+
#endif/* __FreeBSD__ */

‎src/backend/port/BSD44_derived/port-protos.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: port-protos.h,v 1.3 1996/10/31 11:09:37 scrappy Exp $
9+
* $Id: port-protos.h,v 1.4 1997/01/03 04:59:01 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -35,10 +35,17 @@
3535
* begin with an underscore is fairly tricky, and some versions of
3636
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
3737
*/
38-
#definepg_dlopen(f)BSD44_derived_dlopen(f, 1)
39-
#definepg_dlsymBSD44_derived_dlsym
40-
#definepg_dlcloseBSD44_derived_dlclose
41-
#definepg_dlerrorBSD44_derived_dlerror
38+
#if !defined(__FreeBSD__)
39+
# definepg_dlopen(f)BSD44_derived_dlopen(f, 1)
40+
# definepg_dlsymBSD44_derived_dlsym
41+
# definepg_dlcloseBSD44_derived_dlclose
42+
# definepg_dlerrorBSD44_derived_dlerror
43+
#else
44+
# definepg_dlopen(f)dlopen(f, 1)
45+
# definepg_dlsymdlsym
46+
# definepg_dlclosedlclose
47+
# definepg_dlerrordlerror
48+
#endif
4249

4350
char*BSD44_derived_dlerror(void);
4451
void*BSD44_derived_dlopen(constchar*filename,intnum);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp