pkgsrc/lang/japhar/patches/patch-ab
2015-12-29 23:34:43 +00:00

15 lines
552 B
Text

$NetBSD: patch-ab,v 1.4 2015/12/29 23:34:49 dholland Exp $
Apply FreeBSD dynamic linking restriction only when on FreeBSD.
--- include/dynamic_loading.h.orig 2006-05-21 16:00:36.000000000 +0000
+++ include/dynamic_loading.h
@@ -29,7 +29,7 @@ extern "C" {
#endif
#if defined USE_DLL && ( defined HAVE_DLFCN_H || defined HAVE_DL_H )
-# if (__FreeBSD__ < 3 && !defined( PROFILING )) || !defined(__FreeBSD__)
+# if (defined(__FreeBSD__) && __FreeBSD__ < 3 && !defined( PROFILING )) || !defined(__FreeBSD__)
# define HAVE_DLL
# endif
#endif