lantiq: move dsl tools to package/network/config
[openwrt.git] / package / network / config / ltq-adsl-app / patches / 010-eglibc_compile_fix.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -29,6 +29,8 @@ AC_C_VOLATILE
4  #AC_FUNC_STRTOD
5  #AC_CHECK_FUNCS([ftime gethostbyname gettimeofday localtime_r memset select socket strchr strerror strstr strtoull])
6  
7 +AC_SEARCH_LIBS([clock_gettime],[rt])
8 +
9  #
10  # save the configure arguments
11  #
12 --- a/src/dsl_cpe_linux.h
13 +++ b/src/dsl_cpe_linux.h
14 @@ -45,7 +45,8 @@
15  #include <arpa/inet.h>
16  #include <sys/socket.h>          /* socket */
17  #include <sys/sem.h>             /* semget */
18 -#include <semaphore.h>           /* sem_t */ 
19 +#include <semaphore.h>           /* sem_t */
20 +#include <limits.h>
21  
22  #ifdef DSL_DEBUG_TOOL_INTERFACE
23  #include <sys/socket.h>