]> git.armaanb.net Git - opendoas.git/blobdiff - configure
fix pamcleanup
[opendoas.git] / configure
index b5cbf80e440a0cfdd82925856ffca16177085235..48a515a6776312956c716ebf5790a01c0e43cabb 100755 (executable)
--- a/configure
+++ b/configure
@@ -266,16 +266,6 @@ int main(void) {
 check_func "bsd_auth_h" "$src" && \
        have_bsd_auth_h=1
 
-#
-# Check for sys/tree.h.
-#
-src='
-#include <sys/tree.h>
-int main(void) {
-       return 0;
-}'
-check_func "sys_tree_h" "$src"
-
 #
 # Check for pam_appl.h.
 #
@@ -342,3 +332,15 @@ int main(void) {
 check_func "pledge" "$src" || {
        printf 'OPENBSD  +=     pledge-noop.o\n' >>$CONFIG_MK
 }
+
+#
+#
+#
+src='
+#include <stdlib.h>
+int main(void){return 0;}
+__attribute__((__unused__)) static void foo(void){return;}
+'
+check_func "__attribute__" "$src" || {
+       printf 'CFLAGS  +=      -DNO_ATTRIBUTE_ON_RETURN_TYPE=1\n' >>$CONFIG_MK
+}