Compilation fails as of current trunk. realpath is undefined when
compiling rs-utils.c.

Looking at the man page seems to indicate:
 - there's a missing include
 - _XOPEN_SOURCE_ must be defined to a certain level


Index: librawstudio/rs-utils.c
===================================================================
--- librawstudio/rs-utils.c     (révision 3153)
+++ librawstudio/rs-utils.c     (copie de travail)
@@ -17,7 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA.
  */
 
-#define _XOPEN_SOURCE /* strptime() */
+#define _XOPEN_SOURCE 500 /* strptime realpath */
 #include <rawstudio.h>
 #include <config.h>
 #include <glib.h>
@@ -30,6 +30,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <limits.h>
 #include <stdlib.h>
 
 #define DOTDIR ".rawstudio"

-- 
Edouard Gomez

_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev

Reply via email to