diff -Naur gphotofs-0.4.0.orig/gphotofs.c gphotofs-0.4.0/gphotofs.c
--- gphotofs-0.4.0.orig/gphotofs.c	2007-07-27 07:33:27.000000000 -0600
+++ gphotofs-0.4.0/gphotofs.c	2008-03-01 22:21:00.000000000 -0600
@@ -26,6 +26,11 @@
 #include <fcntl.h>
 #include <sys/time.h>
 
+#ifndef __LC_CTYPE__
+#include <locale.h>
+#endif
+
+
 /*
  * Static variables set by command line arguments.
  */
