diff options
author | Guillem Jover <guillem@debian.org> | 2014-04-29 06:36:44 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-04-30 06:47:33 +0200 |
commit | 99e299736daf81e9ffcf9d40cdc5085748c6dfbe (patch) | |
tree | 9748c944edf5aa6652502f8e4ea9b9bb569ab4dc /configure.ac | |
parent | 6f2a7a736c0c2873c3415c1cd1eb8b5c7c42c4b5 (diff) | |
download | dpkg-99e299736daf81e9ffcf9d40cdc5085748c6dfbe.tar.gz |
libcompat: Make sure P_tmpdir is always defined
This will guarantee the macro constant is always defined, which allows
us to remove an equivalent code branch, which in normal conditions is
dead code.
As a side effect this unconfuses static code analyzers like cppcheck or
coverity.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5d75556b9..bae7a0385 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,7 @@ DPKG_CHECK_DECL([makedev], [sys/types.h]) DPKG_CHECK_DECL([WCOREDUMP], [sys/wait.h]) DPKG_CHECK_DECL([TIOCNOTTY], [sys/ioctl.h]) DPKG_CHECK_DECL([O_NOFOLLOW], [fcntl.h]) +DPKG_CHECK_DECL([P_tmpdir], [stdio.h]) DPKG_CHECK_PROGNAME DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free \ strnlen strndup strerror strsignal asprintf \ |