* util.c: Check if __GLIBC__ is defined before using it.
* signal.c: Likewise. Fix __GLIBC_MINOR__ checks.
# define SI_FROMUSER(sip) ((sip)->si_code <= 0)
#endif
-#if __GLIBC_MINOR__ < 1
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1))
/* Type for data associated with a signal. */
typedef union sigval
{
#if !defined SS_ONSTACK
#define SS_ONSTACK 1
#define SS_DISABLE 2
-#if __GLIBC_MINOR__ == 0
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1))
typedef struct
{
__ptr_t ss_sp;
# include <sys/uio.h>
#endif
-#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1))
# include <linux/ptrace.h>
#endif