diff options
author | Andreas Schneider <asn@samba.org> | 2019-11-06 18:33:43 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2019-11-11 15:44:13 +0100 |
commit | 8076f3d59b88d9a8d6649b1b98815089ad217b5f (patch) | |
tree | e5640d0d6084f10a917ba3634511602654073931 | |
parent | 6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9 (diff) | |
download | nss_wrapper-8076f3d59b88d9a8d6649b1b98815089ad217b5f.tar.gz nss_wrapper-8076f3d59b88d9a8d6649b1b98815089ad217b5f.tar.xz nss_wrapper-8076f3d59b88d9a8d6649b1b98815089ad217b5f.zip |
cmake: Check for getprogname() and getexecname()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | config.h.cmake | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index d0e1e0d..2947a8e 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -78,6 +78,9 @@ check_function_exists(gethostbyname_r HAVE_GETHOSTBYNAME_R) check_function_exists(gethostbyname2 HAVE_GETHOSTBYNAME2) +check_function_exists(getprogname HAVE_GETPROGNAME) +check_function_exists(getexecname HAVE_GETEXECNAME) + if (WIN32) check_function_exists(_vsnprintf_s HAVE__VSNPRINTF_S) check_function_exists(_vsnprintf HAVE__VSNPRINTF) diff --git a/config.h.cmake b/config.h.cmake index 15f6afc..de0b5df 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -59,6 +59,9 @@ /* Define to 1 if you have the `gethostbyname2' function. */ #cmakedefine HAVE_GETHOSTBYNAME2 1 +#cmakedefine HAVE_GETPROGNAME 1 +#cmakedefine HAVE_GETEXECNAME 1 + #cmakedefine HAVE___POSIX_GETPWNAM_R 1 #cmakedefine HAVE___POSIX_GETPWUID_R 1 |