configure: ensure sizeof(int) >= 4
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 7 Jul 2023 00:50:13 +0000 (12:50 +1200)
committerJeremy Allison <jra@samba.org>
Tue, 11 Jul 2023 22:44:15 +0000 (22:44 +0000)
commit05e2ec1d8bec3285a0f6c075bddcab161ac5e9db
tree0505440f2f8eb66dc8cfe8645824380179a2d8e3
parent230f8db40f13cece42dbaf1053b4e32233e50282
configure: ensure sizeof(int) >= 4

There are multiple places we make this assumption. For example, in
source3/lib/tldap.c, we have this line

      if (ld->msgid == 2147483647) {

where ld->msgid is an int. And in librpc/idl/security.idl we have
several lines like:

      const int SEC_MASK_GENERIC        = 0xF0000000;

In lib/replace/inet_pton.c and inet_ntop.c we have

  /*
   * WARNING: Don't even consider trying to compile this on a system where
   * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.
   */

but no attempt to enforce that as far as I can see, until now.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 11 22:44:15 UTC 2023 on atb-devel-224
lib/replace/wscript