summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2011-01-19 23:13:54 +0100
committerJan Djärv <jan.h.d@swipnet.se>2011-01-19 23:13:54 +0100
commit8beb828a0bf0ba523cdd99396d036ab4b3bfa464 (patch)
tree8d31abd3aab269ea30c51ef812568cde435bd440 /src/unexmacosx.c
parentfb9d0f5afc688e0225c173fa85fd0123467be59c (diff)
downloademacs-8beb828a0bf0ba523cdd99396d036ab4b3bfa464.tar.gz
* unexmacosx.c: Include config.h before unistd.h.
Fixes: debbugs:7859
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 75d6677f535..d3cf74eb33c 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -91,6 +91,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <fcntl.h>
#include <stdarg.h>
#include <sys/types.h>
+#include <config.h>
+#undef malloc
+#undef realloc
+#undef free
#include <unistd.h>
#include <mach/mach.h>
#include <mach-o/loader.h>
@@ -98,10 +102,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#if defined (__ppc__)
#include <mach-o/ppc/reloc.h>
#endif
-#include <config.h>
-#undef malloc
-#undef realloc
-#undef free
#ifdef HAVE_MALLOC_MALLOC_H
#include <malloc/malloc.h>
#else