Fix typo in #if test for localtime_r().
authorMichael Poole <mdpoole@troilus.org>
Mon, 27 Jun 2011 01:59:22 +0000 (21:59 -0400)
committerMichael Poole <mdpoole@troilus.org>
Mon, 27 Jun 2011 01:59:22 +0000 (21:59 -0400)
src/compat.c

index 91105371dc16e9ca81bac416eabf6ee0e9722a22..08d7d39e3c2c91a66d2fb892acf6e9bcc4a9653b 100644 (file)
@@ -35,7 +35,7 @@ int gettimeofday(struct timeval * tv, struct timezone * tz)
 }
 #endif
 
-#if !defined(HAVE_GETLOCALTIME_R) && defined(HAVE_LOCALTIME)
+#if !defined(HAVE_LOCALTIME_R) && defined(HAVE_LOCALTIME)
 struct tm *localtime_r(const time_t *timep, struct tm *result)
 {
     memcpy(result, localtime(timep), sizeof(*result));