[dia/dia-0-97] Bug #585004 - implicit declaration of function 'finite'
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia/dia-0-97] Bug #585004 - implicit declaration of function 'finite'
- Date: Sat, 6 Jun 2009 13:42:56 -0400 (EDT)
commit a1deb815d40721cd47f36da03282f2cd848d5be6
Author: Hans Breuer <hans breuer org>
Date: Sat Jun 6 19:09:37 2009 +0200
Bug #585004 - implicit declaration of function 'finite'
Define _BSD_SOURCE before inclusion of sys/stat.h
---
app/load_save.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/load_save.c b/app/load_save.c
index f85d762..7381233 100644
--- a/app/load_save.c
+++ b/app/load_save.c
@@ -17,17 +17,18 @@
*/
#include <config.h>
-/* so we get fdopen declared even when compiling with -ansi */
-#define _POSIX_C_SOURCE 2
+#define _BSD_SOURCE 1 /* to get the prototype for fchmod() */
+#define _POSIX_C_SOURCE 2 /* so we get fdopen declared even when compiling with -ansi */
+#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
+
#include <glib.h>
#include <glib/gstdio.h> /* g_access() and friends */
#include <errno.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]