Skip to content
Permalink
Browse files

[depends/samba] - fixed compile for tvos with ios/tvos 11 sdk (missin…

…g crt_extensions.h)
  • Loading branch information...
Memphiz committed Sep 25, 2017
1 parent 920f233 commit 1b4c6a48610360977fb22fc6ee093b63f31138ec
Showing with 14 additions and 2 deletions.
  1. +3 −2 tools/depends/target/samba-gplv3/Makefile
  2. +11 −0 tools/depends/target/samba-gplv3/crt_extensions.patch
@@ -1,5 +1,5 @@
include ../../Makefile.include
DEPS= ../../Makefile.include Makefile autotools41.patch configureEndian.patch samba_android.patch samba_off64_t.patch no_fork_and_exec.patch
DEPS= ../../Makefile.include Makefile autotools41.patch configureEndian.patch samba_android.patch samba_off64_t.patch no_fork_and_exec.patch crt_extensions.patch

# lib name, version
LIBNAME=samba
@@ -57,8 +57,9 @@ ifeq ($(OS),android)
cd $(PLATFORM); patch -p0 < ../samba_android.patch
cd $(PLATFORM); patch -p1 < ../samba_off64_t.patch
endif
ifeq ($(TARGET_PLATFORM),appletvos)
ifeq ($(OS), ios)
cd $(PLATFORM); patch -p0 < ../no_fork_and_exec.patch
cd $(PLATFORM); patch -p0 < ../crt_extensions.patch
endif
ifeq (darwin, $(findstring darwin, $(HOST)))
sed -ie "s|ifndef HAVE_CLOCK_GETTIME|if !defined(HAVE_CLOCK_GETTIME) \&\& !defined(CLOCK_REALTIME)|" "$(PLATFORM)/lib/replace/system/time.h"
@@ -0,0 +1,11 @@
--- lib/replace/replace.h 2017-09-25 19:50:26.000000000 +0200
+++ lib/replace/replace.h 2017-09-25 19:48:25.000000000 +0200
@@ -197,7 +197,7 @@

#if !HAVE_DECL_ENVIRON
#ifdef __APPLE__
-#include <crt_externs.h>
+//#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#else
extern char **environ;

0 comments on commit 1b4c6a4

Please sign in to comment.
You can’t perform that action at this time.