[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] avoid build failure when compiling with -DGNULIB_PORTCHECK
From: |
Jim Meyering |
Subject: |
[PATCH] avoid build failure when compiling with -DGNULIB_PORTCHECK |
Date: |
Fri, 26 Dec 2008 18:20:38 +0100 |
Hi James,
When I build with -DGNULIB_PORTCHECK, I get this failure:
parser.c:(.text+0x2c52): undefined reference to `eschew_ctime'
That's a feature of gnulib, but in this case, there's
nothing wrong with the use of ctime, so I added the
#undef to suppress the failure.
>From df26314645bd992bbc1a97b9070f23bed3b8758c Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 26 Dec 2008 18:19:55 +0100
Subject: [PATCH] avoid build failure when compiling with -DGNULIB_PORTCHECK
* find/parser.c (parse_time): #undef ctime.
---
find/parser.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/find/parser.c b/find/parser.c
index 294672f..be49410 100644
--- a/find/parser.c
+++ b/find/parser.c
@@ -3388,6 +3388,10 @@ parse_time (const struct parser_table* entry, char
*argv[], int *arg_ptr)
(tval.kind == COMP_GT) ? " >" :
((tval.kind == COMP_LT) ? " <" : ((tval.kind == COMP_EQ) ? ">="
: " ?")));
t = our_pred->args.reftime.ts.tv_sec;
+
+ /* Avoid failure when compiling with -DGNULIB_PORTCHECK. */
+#undef ctime
+
fprintf (stderr, "%ju %s",
(uintmax_t) our_pred->args.reftime.ts.tv_sec,
ctime (&t));
--
1.6.1.302.gccd4d
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] avoid build failure when compiling with -DGNULIB_PORTCHECK,
Jim Meyering <=