瀏覽代碼

* linuxerrorcide

marco 22 年之前
父節點
當前提交
70ca3f6e50
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      ide/fpcompil.pas

+ 11 - 2
ide/fpcompil.pas

@@ -136,7 +136,7 @@ uses
   {$ifdef VER1_0}
   {$ifdef VER1_0}
     Linux,
     Linux,
   {$else}
   {$else}
-    Unix,
+    Unix, BaseUnix,
   {$endif}
   {$endif}
 {$endif}
 {$endif}
 {$ifdef go32v2}
 {$ifdef go32v2}
@@ -1038,8 +1038,14 @@ begin
        ChangeRedirError(FPErrFileName,false);
        ChangeRedirError(FPErrFileName,false);
 {$endif}
 {$endif}
 {$ifdef Unix}
 {$ifdef Unix}
+       {$ifdef ver1_0}
        Shell(GetExePath+PpasFile);
        Shell(GetExePath+PpasFile);
        Error:=LinuxError;
        Error:=LinuxError;
+       {$else}
+       error:=0;
+       If Shell(GetExePath+PpasFile)=-1 Then 
+        Error:=fpgeterrno;
+       {$endif}
 {$else}
 {$else}
        DosExecute(GetEnv('COMSPEC'),'/C '+GetExePath+PpasFile);
        DosExecute(GetEnv('COMSPEC'),'/C '+GetExePath+PpasFile);
        Error:=DosError;
        Error:=DosError;
@@ -1330,7 +1336,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.22  2003-03-28 09:55:46  armin
+  Revision 1.23  2003-11-14 17:29:38  marco
+   * linuxerrorcide
+
+  Revision 1.22  2003/03/28 09:55:46  armin
   * Fixed TCompilerMessageWindow.AddMessage to see line numbers with 1.1
   * Fixed TCompilerMessageWindow.AddMessage to see line numbers with 1.1
 
 
   Revision 1.21  2003/03/27 14:11:53  pierre
   Revision 1.21  2003/03/27 14:11:53  pierre