]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix kadmin with e2fsprogs libss 330/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 23 Sep 2015 22:20:41 +0000 (18:20 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 24 Sep 2015 23:27:10 +0000 (19:27 -0400)
The libss in e2fsprogs exports ss_execute_command(), but does not
prototype it (as of this writing; a patch has been submitted
upstream).  When using the system ss library, check if a prototype is
needed and provide one if so.

ticket: 8251 (new)
target_version: 1.14
tags: pullup

src/aclocal.m4
src/kadmin/cli/ss_wrapper.c

index ff444ee8c701c73966b3b9e5e4485d369c8448ec..dbb7db2eb29ac4f5a70cb2c9ec0b26d0b83024e2 100644 (file)
@@ -1483,6 +1483,7 @@ int main(int argc, char *argv[]) {
 }], krb5_cv_system_ss_okay=yes, AC_MSG_ERROR(cannot run test program),
   krb5_cv_system_ss_okay="assumed")])
   LIBS="$old_LIBS"
+  KRB5_NEED_PROTO([#include <ss/ss.h>],ss_execute_command,1)
 else
   SS_VERSION=k5
   AC_MSG_RESULT(krb5)
index 776c383d7128bfb136b7e286cdde6e5a918b6039..7ae9f1a225d12073198f1545b2cd4f241e2cea30 100644 (file)
 #include <ss/ss.h>
 #include "kadmin.h"
 
+#ifdef NEED_SS_EXECUTE_COMMAND_PROTO
+int ss_execute_command(int, char **);
+#endif
+
 extern ss_request_table kadmin_cmds;
 extern int exit_status;
 extern char *whoami;