Changeset: f97237beb26c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f97237beb26c
Modified Files:
        common/utils/mutils.c
Branch: Apr2011
Log Message:

get_bin_path: include sys/sysctl.h for BSD

It helps when the appropriate define is actually defined to enable some
codepath.  This fixes startup on FreeBSD, since get_bin_path now really
returns the path to the executable.


diffs (14 lines):

diff --git a/common/utils/mutils.c b/common/utils/mutils.c
--- a/common/utils/mutils.c
+++ b/common/utils/mutils.c
@@ -40,6 +40,10 @@
 # include <limits.h>  /* PATH_MAX on Solaris */
 #endif
 
+#ifdef HAVE_SYS_SYSCTL_H
+# include <sys/sysctl.h>  /* KERN_PROC_PATHNAME on BSD */
+#endif
+
 #ifdef NATIVE_WIN32
 
 #include <stdio.h>
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to