summaryrefslogtreecommitdiffstats
path: root/generic/tclZipfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclZipfs.c')
-rw-r--r--generic/tclZipfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 303ea03..4d43331 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -16,7 +16,6 @@
* projects.
*/
-#define _GNU_SOURCE
#include "tclInt.h"
#include "tclFileSystem.h"
@@ -33,7 +32,7 @@
#define TBLS 1
#endif
-#if 1 /* HAVE_DLADDR */
+#if !defined(NO_DLFCN_H)
#include <dlfcn.h>
#endif
@@ -3912,7 +3911,7 @@ TclZipfs_TclLibrary(void)
if (ZipfsAppHookFindTclInit(dllName) == TCL_OK) {
return Tcl_NewStringObj(zipfs_literal_tcl_library, -1);
}
-#elif 1
+#elif !defined(NO_DLFCN_H)
Dl_info dlinfo;
if (dladdr(TclZipfs_TclLibrary, &dlinfo) && (dlinfo.dli_fname != NULL)
&& (ZipfsAppHookFindTclInit(dlinfo.dli_fname) == TCL_OK)) {