[dia] Bug 726458 - Fix build problem on FreeBSD



commit 4e948cc8fca17ff2ae4b961defc0f48ad78bae6d
Author: Ting-Wei Lan <lantw44 gmail com>
Date:   Sun Mar 16 23:16:24 2014 +0800

    Bug 726458 - Fix build problem on FreeBSD
    
    Define _BSD_SOURCE does not make fchmod() available on FreeBSD. Change
    _POSIX_C_SOURCE to 200809L so we can build it on FreeBSD.
    
    Signed-off-by: Hans Breuer <hans breuer org>

 app/load_save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/load_save.c b/app/load_save.c
index f67e240..64c59af 100644
--- a/app/load_save.c
+++ b/app/load_save.c
@@ -18,7 +18,7 @@
 #include <config.h>
 
 /* so we get fdopen declared even when compiling with -ansi */
-#define _POSIX_C_SOURCE 2
+#define _POSIX_C_SOURCE 200809L
 #define _BSD_SOURCE 1 /* to get the prototype for fchmod() */
 #include <sys/stat.h>
 #ifdef HAVE_UNISTD_H


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]