]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary unistd.h #include in 'intptr_t' check
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Apr 2022 20:07:17 +0000 (13:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 13 Apr 2022 02:51:25 +0000 (19:51 -0700)
`intptr_t` is unrelated to unistd.h.

Gitlab: #2204

configure.ac

index 1484d655a0f46feb074ce39fd9f41f53228b1083..003e48d31ea634cb859221fafd25d98cd3dbd2d8 100644 (file)
@@ -2546,9 +2546,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
 AC_MSG_CHECKING(if intptr_t is declared)
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
   #include <stdint.h>
-       #if HAVE_UNISTD_H
-       #include <unistd.h>
-       #endif
        ]], [[intptr_t  abc;
        ]])],[AC_MSG_RESULT(yes)
        AC_DEFINE_UNQUOTED(HAVE_INTPTR_T,1,Define if intptr_t is declared)