diff options
author | Theo Buehler <tb@openbsd.org> | 2025-08-01 21:18:55 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2025-08-01 21:18:55 +0200 |
commit | bbac3a6a852898349fc6f25b587791ff29675297 (patch) | |
tree | 0fc9ae36b3b0b9ce684d826777fca0011de9a169 | |
parent | 887c1d0bc61b1b23007cd523d8751ad4996c2623 (diff) | |
parent | d580acbc29c8e4a5c2a117ff6cec0fcb6027f8c3 (diff) | |
download | portable-master.tar.gz portable-master.tar.bz2 portable-master.zip |
Change-Id: I6a6a6964e97961b85bb743940f38aa31c19004bd
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a035bb..17e5a0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -378,6 +378,16 @@ if(HAVE_NETINET_IP_H) | |||
378 | add_definitions(-DHAVE_NETINET_IP_H) | 378 | add_definitions(-DHAVE_NETINET_IP_H) |
379 | endif() | 379 | endif() |
380 | 380 | ||
381 | check_include_files(resolv.h HAVE_RESOLV_H) | ||
382 | if(HAVE_RESOLV_H) | ||
383 | add_definitions(-DHAVE_RESOLV_H) | ||
384 | endif() | ||
385 | |||
386 | check_include_files(arpa/nameser.h HAVE_ARPA_NAMESER_H) | ||
387 | if(HAVE_ARPA_NAMESER_H) | ||
388 | add_definitions(-DHAVE_ARPA_NAMESER_H) | ||
389 | endif() | ||
390 | |||
381 | # This isn't ready for universal binaries yet, since we do conditional | 391 | # This isn't ready for universal binaries yet, since we do conditional |
382 | # compilation based on the architecture, but this makes cross compiling for a | 392 | # compilation based on the architecture, but this makes cross compiling for a |
383 | # single architecture work on macOS at least. | 393 | # single architecture work on macOS at least. |