source3/wscript: Fix detection of major/minor macros
commitd0ee9d5a43072ecbd37327f5dc936c546f97ba34
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Nov 2022 12:53:17 +0000 (21 13:53 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 9 Jan 2023 10:43:37 +0000 (9 10:43 +0000)
tree8654a5ff4d605722bff27edc6c85ed7d4a0733b4
parent75db84b1e59a42737343445c43c41494460c89f0
source3/wscript: Fix detection of major/minor macros

These macros are only available via <sys/sysmacros.h> as of glibc
commit e16deca62e16f645213dffd4ecd1153c37765f17 ("[BZ #19239] Don't
include sys/sysmacros.h from sys/types.h."), which went into
glibc 2.28.

This is different from the usual C99 cleanups because it changes
the configure check result with existing compilers that usually
accept implicit function declarations.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15281

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/wscript