summaryrefslogtreecommitdiffstats
path: root/x11/gnome-panel/files/patch-applets_clock_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-panel/files/patch-applets_clock_clock.c')
-rw-r--r--x11/gnome-panel/files/patch-applets_clock_clock.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/gnome-panel/files/patch-applets_clock_clock.c b/x11/gnome-panel/files/patch-applets_clock_clock.c
new file mode 100644
index 000000000..981e4b4f2
--- /dev/null
+++ b/x11/gnome-panel/files/patch-applets_clock_clock.c
@@ -0,0 +1,24 @@
+--- applets/clock/clock.c.orig Mon Oct 24 02:25:11 2005
++++ applets/clock/clock.c Tue Nov 22 02:47:05 2005
+@@ -47,7 +47,9 @@
+ #include <dirent.h>
+ #include <string.h>
+ #include <time.h>
++#ifdef HAVE_LANGINFO_H
+ #include <langinfo.h>
++#endif
+
+ #include <panel-applet.h>
+ #include <panel-applet-gconf.h>
+@@ -545,7 +547,11 @@ clock_locale_format (void)
+ {
+ const char *am;
+
++#ifdef HAVE_LANGINFO_H
+ am = nl_langinfo (AM_STR);
++#else
++ am = "AM";
++#endif
+ return (am[0] == '\0') ? CLOCK_FORMAT_24 : CLOCK_FORMAT_12;
+ }
+