cmake: Check for getprogname()
authorAndreas Schneider <asn@cryptomilk.org>
Sat, 14 Jan 2023 08:57:13 +0000 (09:57 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 17 Jan 2023 13:22:25 +0000 (14:22 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
ConfigureChecks.cmake
config.h.cmake

index e299f6e49fb3144f08a7eb3774dd80c06f4e2152..32011318060e501de079ca57a5d2cd231fa3a6cc 100644 (file)
@@ -68,6 +68,8 @@ check_function_exists(getgroups HAVE_GETGROUPS)
 check_function_exists(__getgroups_chk HAVE___GETGROUPS_CHK)
 check_function_exists(setgroups HAVE_SETGROUPS)
 
+check_function_exists(getprogname HAVE_GETPROGNAME)
+
 if (HAVE_SETGROUPS)
     check_prototype_definition(setgroups
         "int setgroups(int size, const gid_t *list)"
index 5b342e3a15bb0a5c081c54844c19ae934fb2a8a4..dde70ec3eeaf8986340446026198a8f506d94b1d 100644 (file)
@@ -53,6 +53,9 @@
 #cmakedefine HAVE_SYSCALL 1
 #cmakedefine HAVE_SYSCALL_INT 1
 
+/* Define to 1 if you have the `getprogname' function. */
+#cmakedefine HAVE_GETPROGNAME 1
+
 /*************************** LIBRARIES ***************************/
 
 /**************************** OPTIONS ****************************/