mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 20:39:43 +02:00
* unit dbf_dbffile now compilable under OS/2
git-svn-id: trunk@28894 -
This commit is contained in:
parent
ebccde996e
commit
585bedf2e8
@ -228,12 +228,14 @@ implementation
|
||||
|
||||
uses
|
||||
{$ifndef WINDOWS}
|
||||
{$ifndef FPC}
|
||||
{$IFNDEF OS2}
|
||||
{$ifndef FPC}
|
||||
RTLConsts,
|
||||
{$else}
|
||||
{$else FPC}
|
||||
BaseUnix,
|
||||
{$endif}
|
||||
{$endif}
|
||||
{$endif FPC}
|
||||
{$ENDIF OS2}
|
||||
{$endif WINDOWS}
|
||||
{$ifdef SUPPORT_MATH_UNIT}
|
||||
Math,
|
||||
{$endif}
|
||||
@ -3155,8 +3157,10 @@ end;
|
||||
procedure TDbfGlobals.InitUserName;
|
||||
{$ifdef FPC}
|
||||
{$ifndef WINDOWS}
|
||||
{$IFNDEF OS2}
|
||||
var
|
||||
TempName: UTSName;
|
||||
{$ENDIF OS2}
|
||||
{$endif}
|
||||
{$endif}
|
||||
begin
|
||||
@ -3176,8 +3180,12 @@ begin
|
||||
{$endif wince}
|
||||
{$else}
|
||||
{$ifdef FPC}
|
||||
{$IFDEF OS2}
|
||||
FUserName := GetEnvironmentVariable ('HOSTNAME');
|
||||
{$ELSE OS2}
|
||||
FpUname(TempName);
|
||||
FUserName := TempName.machine;
|
||||
{$ENDIF OS2}
|
||||
FUserNameLen := Length(FUserName);
|
||||
{$endif}
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user