diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 13:37:14 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 14:23:17 +0900 |
| commit | 24f5e2fc62606c25c4b43e2dd77aea9aa721acba (patch) | |
| tree | 3aa5ce435a7fef3f8a7b568e5ac808b851664db1 /lib/memory_vty.c | |
| parent | a89b1641fd23740daf9a7331417b1373aa3d5932 (diff) | |
build: massively remove needless checks
Since we have autoconf results from a wide swath of target platforms, we
can go remove checks that have the same result on all systems.
This also removes several "fallback" implementations of functions that,
at some point in the history, weren't available on all target platforms.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/memory_vty.c')
| -rw-r--r-- | lib/memory_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memory_vty.c b/lib/memory_vty.c index ff0363d45a..149b329130 100644 --- a/lib/memory_vty.c +++ b/lib/memory_vty.c @@ -22,9 +22,9 @@ #include <zebra.h> /* malloc.h is generally obsolete, however GNU Libc mallinfo wants it. */ -#if !defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO)) +#if (defined(GNU_LINUX) && defined(HAVE_MALLINFO)) #include <malloc.h> -#endif /* !HAVE_STDLIB_H || HAVE_MALLINFO */ +#endif /* HAVE_MALLINFO */ #include "log.h" #include "memory.h" |
