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

Commit8e3ccad

Browse files
author
Thomas G. Lockhart
committed
Test for __ELF__ rather than LINUX_ELF in headers.
Comment-out dynamic link function declarations since they are all provided by the system.Should we bother continuing to support non-elf Linux systems??
1 parente447a46 commit8e3ccad

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

‎src/backend/port/dynloader/linux.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.2 1997/12/20 04:13:31 scrappy Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/linux.c,v 1.3 1998/01/01 06:02:02 thomas Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -23,6 +23,7 @@
2323
#include"utils/elog.h"
2424
#include"fmgr.h"
2525

26+
#ifFALSE
2627
externcharpg_pathname[];
2728

2829
void*
@@ -112,3 +113,4 @@ pg_dlerror()
112113
returndld_strerror(dld_errno);
113114
#endif
114115
}
116+
#endif

‎src/backend/port/dynloader/linux.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*-------------------------------------------------------------------------
22
*
33
* port-protos.h--
4-
* port-specific prototypes forSunOS 4
4+
* port-specific prototypes forLinux
55
*
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: linux.h,v 1.1 1997/12/2002:36:18 scrappy Exp $
9+
* $Id: linux.h,v 1.2 1998/01/01 06:02:04 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -15,13 +15,13 @@
1515

1616
#include"fmgr.h"/* for func_ptr */
1717
#include"utils/dynamic_loader.h"
18-
#ifdefLINUX_ELF
18+
#ifdef__ELF__
1919
#include"dlfcn.h"
2020
#endif
2121

2222
/* dynloader.c */
2323

24-
#ifndefLINUX_ELF
24+
#ifndef__ELF__
2525
#ifndefHAVE_DLD_H
2626
#definepg_dlsym(handle,funcname)(NULL)
2727
#definepg_dlclose(handle) ({})
@@ -39,4 +39,4 @@
3939

4040
/* port.c */
4141

42-
#endif/* PORT_PROTOS_H */
42+
#endif/* PORT_PROTOS_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp