Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
configure: stop testing for MACROS in configure scripts
Baptiste Daroussin committed 3 months ago
commit 7cb692c0f3730adbf5c7827e12cec7b74d7bf819
parent 906ed64
3 files changed +4 -12
modified auto.def
@@ -156,14 +156,6 @@ foreach fct [list memmove usleep pread pwrite] {
	}
}

-
cc-with { -includes fcntl.h } {
-
	cc-check-decls F_CLOSEM
-
}
-

-
cc-with { -includes sys/socket.h } {
-
	cc-check-decls SOCK_SEQPACKET
-
}
-

cc-with { -includes netinet/in.h } {
	cc-check-members "struct sockaddr_in.sin_len"
}
modified compat/closefrom.c
@@ -22,8 +22,8 @@
#include <sys/param.h>
#include <unistd.h>
#include <stdio.h>
-
#ifdef HAVE_FCNTL_H
-
# include <fcntl.h>
+
#if __has_include(<fcntl.h>)
+
#include <fcntl.h>
#endif
#include <limits.h>
#include <stdlib.h>
@@ -44,7 +44,7 @@ __unused static const char rcsid[] = "$Sudo: closefrom.c,v 1.11 2006/08/17 15:26
/*
 * Close all file descriptors greater than or equal to lowfd.
 */
-
#if HAVE_DECL_F_CLOSEM
+
#ifdef F_CLOSEM
void
closefrom(int lowfd)
{
modified libpkg/utils.c
@@ -869,7 +869,7 @@ get_socketpair(int *pipe)
{
	int r;

-
#ifdef HAVE_DECL_SOCK_SEQPACKET
+
#ifdef SOCK_SEQPACKET
	r = socketpair(AF_LOCAL, SOCK_SEQPACKET, 0, pipe);
	if (r == -1) {
		r = socketpair(AF_LOCAL, SOCK_DGRAM, 0, pipe);