projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use LDOPTS instead of LDFLAGS to avoid an ld warning on Linux 2.4
[madwifi/.git]
/
kernelversion.c
diff --git
a/kernelversion.c
b/kernelversion.c
index 6c873b3486f14c9072bb2de8115da4068567f6de..9a6845d03d55bfe9404b28a536eb532fe0511d5a 100644
(file)
--- a/
kernelversion.c
+++ b/
kernelversion.c
@@
-8,9
+8,14
@@
*/
#include <linux/version.h>
*/
#include <linux/version.h>
-/* Linux 2.6.18+ uses <linux/utsrelease.h> */
#ifndef UTS_RELEASE
#ifndef UTS_RELEASE
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+/* Linux 2.6.33+ uses <generated/utsrelease.h> */
+#include <generated/utsrelease.h>
+#else
+/* Linux 2.6.18 - 2.6.32 uses <linux/utsrelease.h> */
#include <linux/utsrelease.h>
#endif
#include <linux/utsrelease.h>
#endif
+#endif
char *uts_release = UTS_RELEASE;
char *uts_release = UTS_RELEASE;