From: Kirill A. Shutemov Date: Mon, 22 Sep 2008 20:57:43 +0000 (-0700) Subject: smb.h: do not include linux/time.h in userspace X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c32a162fd420fe8dfb049db941b2438061047fcc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git smb.h: do not include linux/time.h in userspace linux/time.h conflicts with time.h from glibc It breaks building smbmount from samba. It's regression introduced by commit 76308da (" smb.h: uses struct timespec but didn't include linux/time.h"). Signed-off-by: Kirill A. Shutemov Cc: [2.6.26.x] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/smb.h b/include/linux/smb.h index caa43b2370cb..82fefddc5987 100644 --- a/include/linux/smb.h +++ b/include/linux/smb.h @@ -11,7 +11,9 @@ #include #include +#ifdef __KERNEL__ #include +#endif enum smb_protocol { SMB_PROTOCOL_NONE,