Deal with kdump not building on modern glibc linux systems. On RedHat 7,
we also need kgcc.
* directory or online at http://www.openafs.org/dl/license10.html
*/
+#include <stdio.h>
+#include <stdlib.h> /* for malloc() */
+#include <string.h>
+
#ifdef __linux__
#define _CFS_HEADER_
#define _AFFS_FS_I
#define u32 unsigned int
#define s32 int
#define u16 unsigned short
+#include <features.h>
+#if __GLIBC_MINOR__ >= 2
#define _SYS_TYPES_H
+#endif
#define __KERNEL__
#endif
#include <afs/param.h>
-#include <stdio.h>
-#include <stdlib.h> /* for malloc() */
-#include <string.h>
-
/*
* Need to include <netdb.h> before _KERNEL is defined since on IRIX 6.5
* <netdb.h> includes <netinet/in.h>, which in turn declares inet_addr()