libreplace: fix endless strerror_r has been redefined warnings on AIX
authorBjörn Jacke <bj@sernet.de>
Wed, 22 Sep 2010 18:16:47 +0000 (11:16 -0700)
committerBjörn Jacke <bj@sernet.de>
Wed, 22 Sep 2010 22:15:59 +0000 (15:15 -0700)
(cherry picked from commit 9b73bb0099d6b33d9e951895be3c877628b6c7dd)

lib/replace/replace.h

index 7b455a582a70a584f3c96586ce75919ba6cfb399..faaaa66b8f22fe6f6839385a1a52e176fff6bb7f 100644 (file)
@@ -513,6 +513,7 @@ char *rep_get_current_dir_name(void);
 #endif
 
 #if !defined(HAVE_STRERROR_R) || !defined(STRERROR_R_PROTO_COMPATIBLE)
+#undef strerror_r
 #define strerror_r rep_strerror_r
 int rep_strerror_r(int errnum, char *buf, size_t buflen);
 #endif