cmake: Check for getprogname() and getexecname()
authorAndreas Schneider <asn@samba.org>
Wed, 6 Nov 2019 17:33:43 +0000 (18:33 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 11 Nov 2019 14:44:13 +0000 (15:44 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
ConfigureChecks.cmake
config.h.cmake

index d0e1e0dad261442b287a601b0a40aa1444bb2ee8..2947a8edee3b600f30f122d8b9d3ca5ac5111f6b 100644 (file)
@@ -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)
index 15f6afc04f173cb11bfd47ab286a5db1ab0b2e1f..de0b5dfba27d6e1fec2a45693cd85407b36808a7 100644 (file)
@@ -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