openbsd-ports/net/ettercap/patches/patch-src_ec_plugins_c

13 lines
428 B
Plaintext

$OpenBSD: patch-src_ec_plugins_c,v 1.3 2003/06/18 14:19:39 avsm Exp $
--- src/ec_plugins.c.orig Fri Sep 6 09:57:31 2002
+++ src/ec_plugins.c Wed Jun 18 15:10:25 2003
@@ -50,7 +50,7 @@
#define RTLD_NOW DL_LAZY
#endif
-#if defined(OPENBSD) || defined(MACOSX)
+#if defined(OPENBSD) && !defined(__ELF__) || defined(MACOSX)
#define SYM_PREFIX "_" // for the symbols loaded with dlsym
#else
#define SYM_PREFIX ""