From 60ce3fec2394b70870381f348159a29374bd9d11 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Wed, 11 Feb 2004 06:01:20 -0800 Subject: [PATCH] [ATM]: prevent userspace compilation errors with glibc-kernheaders --- include/linux/atmdev.h | 4 +--- include/linux/sonet.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 0b371eb0e69d1..81f37e55c510e 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h @@ -200,9 +200,7 @@ struct atm_cirange { "SESSION", "HASSAP", "BOUND", "CLOSE" -#ifndef __KERNEL__ -#undef __AAL_STAT_ITEMS -#else +#ifdef __KERNEL__ #include /* wait_queue_head_t */ #include /* struct timeval */ diff --git a/include/linux/sonet.h b/include/linux/sonet.h index 30c45ec59e2eb..753680296e176 100644 --- a/include/linux/sonet.h +++ b/include/linux/sonet.h @@ -56,9 +56,7 @@ struct sonet_stats { #define SONET_FRSENSE_SIZE 6 /* C1[3],H1[3] (0xff for unknown) */ -#ifndef __KERNEL__ -#undef __SONET_ITEMS -#else +#ifdef __KERNEL__ #include -- 2.53.0