Bläddra i källkod

* initial android pthreads, by Bero, mantis #32105

git-svn-id: trunk@36662 -
marco 8 år sedan
förälder
incheckning
fdd78657e8
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 2 1
      packages/pthreads/fpmake.pp
  2. 3 0
      packages/pthreads/src/pthreads.pp

+ 2 - 1
packages/pthreads/fpmake.pp

@@ -17,13 +17,14 @@ begin
     P.Directory:=ADirectory;
 {$endif ALLPACKAGES}
     P.Version:='3.1.1';
-    P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly];
+    P.OSes := [beos,haiku,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,linux,aix,dragonfly,android];
     P.SourcePath.Add('src');
     P.IncludePath.Add('src');
 
     T:=P.Targets.AddUnit('pthreads.pp');
     with T.Dependencies do
       begin
+        AddInclude('pthrandroid.inc',[Android]);
         AddInclude('pthrlinux.inc',[Linux]);
         AddInclude('pthrbeos.inc',[Beos]);
         AddInclude('pthrsnos.inc',[Solaris]);

+ 3 - 0
packages/pthreads/src/pthreads.pp

@@ -23,6 +23,9 @@ interface
 {$if defined(BSD)}
   uses initc,BaseUnix, unixtype;
   {$i pthrbsd.inc}
+{$elseif defined(android)}
+  uses initc, ctypes, unixtype;
+  {$i pthrandroid.inc}
 {$elseif defined(linux)}
   uses initc, ctypes, unixtype;
   {$i pthrlinux.inc}