diff mbox

Fix -Wundef warning for HAVE_LOCALTIME_R

Message ID 20140709110516.GV609@spoyarek.pnq.redhat.com
State New
Headers show

Commit Message

Siddhesh Poyarekar July 9, 2014, 11:05 a.m. UTC
Define HAVE_LOCALTIME_R to 0.  There is again a gnulib copy for this
in lib/strptime.c, but it is out of sync with our copy.

Siddhesh

	* time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.

---
 time/strptime_l.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Adhemerval Zanella July 9, 2014, 1:30 p.m. UTC | #1
On 09-07-2014 08:05, Siddhesh Poyarekar wrote:
> Define HAVE_LOCALTIME_R to 0.  There is again a gnulib copy for this
> in lib/strptime.c, but it is out of sync with our copy.
>
> Siddhesh
>
> 	* time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
>
> ---
>  time/strptime_l.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/time/strptime_l.c b/time/strptime_l.c
> index 8fe623d..02680d9 100644
> --- a/time/strptime_l.c
> +++ b/time/strptime_l.c
> @@ -28,6 +28,7 @@
>  #include <stdbool.h>
>  
>  #ifdef _LIBC
> +#define HAVE_LOCALTIME_R 0
>  # include "../locale/localeinfo.h"
>  #endif
>  

I would indent with following '# include' directive, otherwise looks ok.
diff mbox

Patch

diff --git a/time/strptime_l.c b/time/strptime_l.c
index 8fe623d..02680d9 100644
--- a/time/strptime_l.c
+++ b/time/strptime_l.c
@@ -28,6 +28,7 @@ 
 #include <stdbool.h>
 
 #ifdef _LIBC
+#define HAVE_LOCALTIME_R 0
 # include "../locale/localeinfo.h"
 #endif