[dia/dia-0-97] Bug #585004 - implicit declaration of function 'fchmod'
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia/dia-0-97] Bug #585004 - implicit declaration of function 'fchmod'
- Date: Sat, 6 Jun 2009 13:43:01 -0400 (EDT)
commit a0f72a2f048ef2aa3efb81314a164383f6b8d4ae
Author: Hans Breuer <hans breuer org>
Date: Sat Jun 6 19:40:38 2009 +0200
Bug #585004 - implicit declaration of function 'fchmod'
Need to also add _BSD_SOURCE define before inclsuion of sys/stat.h
---
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 7381233..6256524 100644
--- a/app/load_save.c
+++ b/app/load_save.c
@@ -17,7 +17,7 @@
*/
#include <config.h>
-#define _BSD_SOURCE 1 /* to get the prototype for fchmod() */
+#define _BSD_SOURCE 1 /* to get the prototype for fchmod() from sys/stat.h */
#define _POSIX_C_SOURCE 2 /* so we get fdopen declared even when compiling with -ansi */
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]