diff options
author | Anatol Belski <ab@php.net> | 2017-03-19 23:19:31 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-03-19 23:19:31 +0100 |
commit | 65afcf81a062cf5cc4a0a754ced6f6422e5537ad (patch) | |
tree | cd872c8fbefcc13ee53442181e2022158c3a1e2f | |
parent | 42821dd1c984574dde62d902a91ea58d2d83ecc6 (diff) | |
download | php-git-65afcf81a062cf5cc4a0a754ced6f6422e5537ad.tar.gz |
use extra flag to turn on php implementations
-rw-r--r-- | main/php.h | 2 | ||||
-rw-r--r-- | main/strlcat.c | 2 | ||||
-rw-r--r-- | main/strlcpy.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/main/php.h b/main/php.h index 5a5dd40617..2d22297d3a 100644 --- a/main/php.h +++ b/main/php.h @@ -182,6 +182,7 @@ END_EXTERN_C() #undef strlcpy #define strlcpy php_strlcpy #define HAVE_STRLCPY 1 +#define USE_STRLCPY_PHP_IMPL 1 #endif #ifndef HAVE_STRLCAT @@ -191,6 +192,7 @@ END_EXTERN_C() #undef strlcat #define strlcat php_strlcat #define HAVE_STRLCAT 1 +#define USE_STRLCAT_PHP_IMPL 1 #endif #ifndef HAVE_EXPLICIT_BZERO diff --git a/main/strlcat.c b/main/strlcat.c index a381b1433c..d3c8972d68 100644 --- a/main/strlcat.c +++ b/main/strlcat.c @@ -20,7 +20,7 @@ #include "php.h" -#ifndef HAVE_STRLCAT +#ifdef USE_STRLCAT_PHP_IMPL /* $OpenBSD: strlcat.c,v 1.17 2016/10/14 18:19:04 dtucker Exp $ */ diff --git a/main/strlcpy.c b/main/strlcpy.c index 3e66140ef6..548dd9410b 100644 --- a/main/strlcpy.c +++ b/main/strlcpy.c @@ -20,7 +20,7 @@ #include "php.h" -#ifndef HAVE_STRLCPY +#ifdef USE_STRLCPY_PHP_IMPL /* $OpenBSD: strlcpy.c,v 1.15 2016/10/16 17:37:39 dtucker Exp $ */ |