based on a patch by Leif Middelschulte
SVN revision: 46911
have_socket="yes"
AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
;;
+ darwin*)
+ ELM_UNIX_DEF="#define"
+ have_socket="yes"
+ AC_CHECK_HEADERS([crt_externs.h])
+ AC_DEFINE([environ], [(*_NSGetEnviron())], [apple doesn't follow POSIX in this case.])
+ ;;
*)
ELM_UNIX_DEF="#define"
AC_CHECK_FUNCS(dlopen, res=yes, res=no)
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
+
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <dlfcn.h> /* dlopen,dlclose,etc */
-#ifdef HAVE_CONFIG_H
-# include "elementary_config.h"
+#ifdef HAVE_CRT_EXTERNS_H
+# include <crt_externs.h>
#endif
#ifdef HAVE_EVIL