crtmpsever: add missing unistd.h inclusion for sysconf()

We were failing the build w/ GCC 4.8 on the sysconf() prototype due to a
missing include of unistd.h

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39922 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2014-03-13 16:52:13 +00:00
parent 75097a215d
commit 977de77cc1
7 changed files with 23 additions and 25 deletions

View File

@ -1,7 +1,5 @@
Index: crtmpserver-r692/builders/make/compile.mk --- a/builders/make/compile.mk
=================================================================== +++ b/builders/make/compile.mk
--- crtmpserver-r692.orig/builders/make/compile.mk
+++ crtmpserver-r692/builders/make/compile.mk
@@ -67,7 +67,7 @@ TINYXML_OBJS = $(TINYXML_SRCS:.cpp=.tiny @@ -67,7 +67,7 @@ TINYXML_OBJS = $(TINYXML_SRCS:.cpp=.tiny
#common #common

View File

@ -1,7 +1,5 @@
Index: crtmpserver-r692/builders/make/linux.mk --- a/builders/make/linux.mk
=================================================================== +++ b/builders/make/linux.mk
--- crtmpserver-r692.orig/builders/make/linux.mk
+++ crtmpserver-r692/builders/make/linux.mk
@@ -31,8 +31,8 @@ OPTIMIZATIONS = -O3 @@ -31,8 +31,8 @@ OPTIMIZATIONS = -O3
COMPILE_FLAGS = $(FPIC) $(OPTIMIZATIONS) $(CFLAGS) COMPILE_FLAGS = $(FPIC) $(OPTIMIZATIONS) $(CFLAGS)

View File

@ -1,7 +1,5 @@
Index: crtmpserver-r726/builders/cmake/crtmpserver/crtmpserver.lua --- a/builders/cmake/crtmpserver/crtmpserver.lua
=================================================================== +++ b/builders/cmake/crtmpserver/crtmpserver.lua
--- crtmpserver-r726.orig/builders/cmake/crtmpserver/crtmpserver.lua
+++ crtmpserver-r726/builders/cmake/crtmpserver/crtmpserver.lua
@@ -44,7 +44,7 @@ configuration= @@ -44,7 +44,7 @@ configuration=
{ {
-- this is the root directory of all applications -- this is the root directory of all applications

View File

@ -1,7 +1,5 @@
Index: crtmpserver-r726/builders/make/linux.mk --- a/builders/make/linux.mk
=================================================================== +++ b/builders/make/linux.mk
--- crtmpserver-r726.orig/builders/make/linux.mk
+++ crtmpserver-r726/builders/make/linux.mk
@@ -38,7 +38,7 @@ dynamic_exec_flags = $(FPIC) $(OPTIMIZAT @@ -38,7 +38,7 @@ dynamic_exec_flags = $(FPIC) $(OPTIMIZAT
PLATFORM_DEFINES = \ PLATFORM_DEFINES = \
-DLINUX \ -DLINUX \

View File

@ -1,7 +1,5 @@
Index: crtmpserver-r726/builders/make/compile.mk --- a/builders/make/compile.mk
=================================================================== +++ b/builders/make/compile.mk
--- crtmpserver-r726.orig/builders/make/compile.mk
+++ crtmpserver-r726/builders/make/compile.mk
@@ -43,10 +43,16 @@ FEATURES_DEFINES = \ @@ -43,10 +43,16 @@ FEATURES_DEFINES = \
-DHAS_PROTOCOL_RTP \ -DHAS_PROTOCOL_RTP \
-DHAS_PROTOCOL_TS \ -DHAS_PROTOCOL_TS \

View File

@ -1,8 +1,6 @@
Index: crtmpserver-r726/builders/make/compile.mk --- a/builders/make/compile.mk
=================================================================== +++ b/builders/make/compile.mk
--- crtmpserver-r726.orig/builders/make/compile.mk 2012-06-07 19:53:18.028378001 +0200 @@ -59,7 +59,7 @@ DEFINES = $(PLATFORM_DEFINES) $(FEATURES
+++ crtmpserver-r726/builders/make/compile.mk 2012-06-07 20:02:08.260400669 +0200
@@ -59,7 +59,7 @@
#library paths #library paths
SSL_INCLUDE=-I$(SSL_BASE)/include SSL_INCLUDE=-I$(SSL_BASE)/include

View File

@ -0,0 +1,10 @@
--- a/sources/common/include/platform/linux/linuxplatform.h
+++ b/sources/common/include/platform/linux/linuxplatform.h
@@ -59,6 +59,7 @@
#include <sys/socket.h>
#include <string.h>
#include <stdarg.h>
+#include <unistd.h>
using namespace std;