Skip to content

Commit 8e3ccad

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 parent e447a46 commit 8e3ccad

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+
#if FALSE
2627
extern char pg_pathname[];
2728

2829
void *
@@ -112,3 +113,4 @@ pg_dlerror()
112113
return dld_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 for SunOS 4
4+
* port-specific prototypes for Linux
55
*
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: linux.h,v 1.1 1997/12/20 02: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-
#ifdef LINUX_ELF
18+
#ifdef __ELF__
1919
#include "dlfcn.h"
2020
#endif
2121

2222
/* dynloader.c */
2323

24-
#ifndef LINUX_ELF
24+
#ifndef __ELF__
2525
#ifndef HAVE_DLD_H
2626
#define pg_dlsym(handle, funcname) (NULL)
2727
#define pg_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)