diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-07-11 10:59:33 +0400 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-13 20:36:13 +0100 |
commit | 95df73b4638b754a069e423ffe03041241b2de8c (patch) | |
tree | 7fda649ace64d0581c280e516f0a11c249e33ba3 /cmake/ConfigureChecks.cmake | |
parent | f0a4d9249078b5ce7f37aea254a4911e481ef584 (diff) | |
download | dbus-95df73b4638b754a069e423ffe03041241b2de8c.tar.gz |
cmake/autotools: remove HAVE_DIRFD/HAVE_DDFD
dirfd() is assumed to be present on Linux, dd_fd is never used.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'cmake/ConfigureChecks.cmake')
-rw-r--r-- | cmake/ConfigureChecks.cmake | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 57986d08..e1540653 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -134,32 +134,6 @@ int main() { } " DBUS_USE_SYNC) -CHECK_C_SOURCE_COMPILES(" -#include <sys/types.h> -#include <dirent.h> -int main( - DIR *dirp; - dirp = opendir(\".\"); - dirfd(dirp); - closedir(dirp); -) -" HAVE_DIRFD) - -if(NOT HAVE_DIRFD) - CHECK_C_SOURCE_COMPILES(" - #include <sys/types.h> - #include <dirent.h> - int main() - { - DIR *dirp; - int fd; - dirp = opendir(\".\"); - fd = dirp->dd_fd; - closedir(dirp); - } - " HAVE_DDFD) -endif() - check_type_size("short" SIZEOF_SHORT) check_type_size("int" SIZEOF_INT) check_type_size("long" SIZEOF_LONG) |