summaryrefslogtreecommitdiffstats
path: root/x11/gnome-panel/files/patch-applets::gen_util::clock.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-09 03:38:07 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-09 03:38:07 +0800
commit51d8329949f81115ae1de2911991acdc910effbd (patch)
tree1fdd1ef17f0b6b78097090b64468cae4ea890881 /x11/gnome-panel/files/patch-applets::gen_util::clock.c
parent632537d40bec29161c54c2010ae7f680c787e921 (diff)
downloadmarcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar.gz
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar.bz2
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar.lz
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar.xz
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.tar.zst
marcuscom-ports-51d8329949f81115ae1de2911991acdc910effbd.zip
Add gnomepanel.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@22 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-panel/files/patch-applets::gen_util::clock.c')
-rw-r--r--x11/gnome-panel/files/patch-applets::gen_util::clock.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11/gnome-panel/files/patch-applets::gen_util::clock.c b/x11/gnome-panel/files/patch-applets::gen_util::clock.c
new file mode 100644
index 000000000..1f5fc1ad8
--- /dev/null
+++ b/x11/gnome-panel/files/patch-applets::gen_util::clock.c
@@ -0,0 +1,27 @@
+
+$FreeBSD: ports/x11/gnomepanel/files/patch-applets::gen_util::clock.c,v 1.1 2002/05/14 14:32:33 sobomax Exp $
+
+--- applets/gen_util/clock.c 2002/05/14 14:08:16 1.1
++++ applets/gen_util/clock.c 2002/05/14 14:12:56
+@@ -14,7 +14,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>
+@@ -684,7 +686,11 @@
+ cd->hourformat = panel_applet_gconf_get_int (applet, KEY_HOUR_FORMAT, &error);
+ if (error || (cd->hourformat != 12 && cd->hourformat != 24)) {
+ /* if value is not valid, set it according to locale */
++#ifdef HAVE_LANGINFO_H
+ const char *am = nl_langinfo (AM_STR);
++#else
++ const char *am = "AM";
++#endif
+ cd->hourformat = (am[0] == '\0') ? 24 : 12;
+
+ if (error)