[dia/dia-0-97] Bug #585004 - implicit declaration of function 'fchmod'



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]