0003-uclinux.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. Good old 'uclinux is also linux'
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. diff -Nura libhid-0.2.16.orig/configure.ac libhid-0.2.16/configure.ac
  4. --- libhid-0.2.16.orig/configure.ac 2014-06-22 09:35:50.277261742 -0300
  5. +++ libhid-0.2.16/configure.ac 2014-06-22 09:36:10.688951947 -0300
  6. @@ -80,6 +80,7 @@
  7. MD_CONF_DEBUGGING
  8. MD_CONF_COMPILER
  9. +AM_CONDITIONAL(OS_LINUX, test "$MD_OS" = "uclinux")
  10. AM_CONDITIONAL(OS_LINUX, test "$MD_OS" = "linux")
  11. AM_CONDITIONAL(OS_BSD, test "$MD_OS" = "bsd")
  12. AM_CONDITIONAL(OS_SOLARIS, test "$MD_OS" = "solaris")
  13. diff -Nura libhid-0.2.16.orig/m4/md_check_os.m4 libhid-0.2.16/m4/md_check_os.m4
  14. --- libhid-0.2.16.orig/m4/md_check_os.m4 2014-06-22 09:35:50.275261675 -0300
  15. +++ libhid-0.2.16/m4/md_check_os.m4 2014-06-22 09:46:17.651475891 -0300
  16. @@ -3,7 +3,7 @@
  17. AC_CANONICAL_HOST
  18. AC_MSG_CHECKING(for target OS)
  19. case $host in
  20. - *-linux*)
  21. + *-linux*|*-uclinux*)
  22. AC_DEFINE(OS_LINUX, [], [define to 1 if building for Linux])
  23. AC_SUBST(OS_LINUX)
  24. MD_OS=linux