You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  1. --- a/include/sm/conf.h
  2. +++ b/include/sm/conf.h
  3. @@ -57,7 +57,7 @@
  4. # endif /* ! HASNICE */
  5. # ifndef HASRRESVPORT
  6. -# define HASRRESVPORT 1 /* has rrsevport(3) call */
  7. +# define HASRRESVPORT 0 /* has rrsevport(3) call */
  8. # endif /* ! HASRRESVPORT */
  9. /**********************************************************************
  10. @@ -1470,7 +1470,9 @@ extern void *malloc();
  11. # define SM_CONF_GETOPT 0 /* need a replacement for getopt(3) */
  12. # define HASUNAME 1 /* use System V uname(2) system call */
  13. # define HASUNSETENV 1 /* has unsetenv(3) call */
  14. -# define ERRLIST_PREDEFINED /* don't declare sys_errlist */
  15. +# ifdef __GLIBC__
  16. +# define ERRLIST_PREDEFINED /* don't declare sys_errlist */
  17. +# endif /* __GLIBC__ */
  18. # define GIDSET_T gid_t /* from <linux/types.h> */
  19. # ifndef HASGETUSERSHELL
  20. # define HASGETUSERSHELL 0 /* getusershell(3) broken in Slackware 2.0 */
  21. @@ -1508,6 +1510,7 @@ extern void *malloc();
  22. # if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  23. # define HASSTRERROR 1 /* has strerror(3) */
  24. # endif /* defined(__GLIBC__) && defined(__GLIBC_MINOR__) */
  25. +# define HASSTRERROR 1 /* Patch for LEDE/OpenWRT: has strerror(3) */
  26. # ifndef TZ_TYPE
  27. # define TZ_TYPE TZ_NONE /* no standard for Linux */
  28. # endif /* ! TZ_TYPE */
  29. --- a/devtools/bin/Build
  30. +++ b/devtools/bin/Build
  31. @@ -320,6 +320,16 @@ then
  32. rel=`/usr/apollo/bin/bldt | grep Domain | awk '{ print $4 }' | sed -e 's/,//g'`
  33. fi
  34. +#
  35. +# LEDE/OpenWrt build system
  36. +#
  37. +if [ -n "$STAGING_DIR" -a -n "$OPENWRT_BUILD" ]
  38. +then
  39. + os="OpenWrt"
  40. + rel="any"
  41. + arch="any"
  42. +fi
  43. +
  44. if [ ! "$arch" -a ! "$os" -a ! "$rel" ]
  45. then
  46. arch=`uname -m | sed -e 's/ //g' -e 's/\//-/g'`