summaryrefslogtreecommitdiff
path: root/Clock.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 17:31:45 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-07-16 17:31:45 +0000
commit575ef4d780ef152a889ee475e4875923c5244589 (patch)
treee70b67f7baf49927b0cdefc886a27edff7db9d48 /Clock.c
parenta4bcc238c730ebadb8c3c67763771bfbefed0879 (diff)
Add #include "config.h" for modularization Accept autoconf HAVE_STRLCPY asXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_16XORG-6_8_99_15
alias for HAS_STRLCAT
Diffstat (limited to 'Clock.c')
-rw-r--r--Clock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Clock.c b/Clock.c
index 7860480..5e3d9d1 100644
--- a/Clock.c
+++ b/Clock.c
@@ -1,5 +1,5 @@
/* $Xorg: Clock.c,v 1.4 2001/02/09 02:05:39 xorgcvs Exp $ */
-/* $XdotOrg: xc/programs/xclock/Clock.c,v 1.2 2004/04/23 19:54:39 eich Exp $ */
+/* $XdotOrg: xc/programs/xclock/Clock.c,v 1.3 2004/10/30 20:33:44 alanc Exp $ */
/***********************************************************
@@ -85,6 +85,10 @@ SOFTWARE.
*/
/* $XFree86: xc/programs/xclock/Clock.c,v 3.25 2003/07/04 16:24:30 eich Exp $ */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Xlib.h>
#include <X11/StringDefs.h>
#include <X11/IntrinsicP.h>
@@ -1350,7 +1354,7 @@ clock_tic(XtPointer client_data, XtIntervalId *id)
XClearArea (dpy, win,
clear_from, 0, w->core.width - clear_from, w->core.height,
False);
-#ifdef HAS_STRLCAT
+#if defined(HAS_STRLCAT) || defined(HAVE_STRLCPY)
strlcpy (w->clock.prev_time_string+i, time_ptr+i,
sizeof(w->clock.prev_time_string)-i);
#else