From 7b9aa24b4fcae981bd72881b0537b102b52b8ff1 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 16 Apr 2011 11:26:55 +0200 Subject: [PATCH] Make sure the strtok_r() prototype is visible on FreeBSD Prevents crashes on architectures where pointers are larger than integers. Reported by Jashank Jeremy --- src/util.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/util.c b/src/util.c index 8f6c349..7ee1c59 100644 --- a/src/util.c +++ b/src/util.c @@ -1,4 +1,7 @@ #define _POSIX_SOURCE +#ifdef __FreeBSD__ +#define _POSIX_C_SOURCE 200809 +#endif #include #include -- 1.7.4.1