diff options
| author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-01-07 18:18:20 +0000 |
|---|---|---|
| committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-01-07 18:18:20 +0000 |
| commit | 7a2cab35de443d177969b1078dc0345c5f4e6367 (patch) | |
| tree | 8061601a577f001c4c4d0c6e0f9cc20c1de1e845 /packages/libc/src | |
| parent | 571a753616edf328bfe0271fc8579fae0ba7a63b (diff) | |
| download | fpc-7a2cab35de443d177969b1078dc0345c5f4e6367.tar.gz | |
* give a compiler error when attempting to compile these units for any
platform other than Linux/i386, so that people trying to manually
compile them will be informed about the fact that these units
will break in various ways on non-Linux/i386
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14567 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/libc/src')
| -rw-r--r-- | packages/libc/src/kerneldefs.pp | 5 | ||||
| -rw-r--r-- | packages/libc/src/kernelioctl.pp | 4 | ||||
| -rw-r--r-- | packages/libc/src/libc.pp | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/packages/libc/src/kerneldefs.pp b/packages/libc/src/kerneldefs.pp index 1efcccaeb1..97d1b710ac 100644 --- a/packages/libc/src/kerneldefs.pp +++ b/packages/libc/src/kerneldefs.pp @@ -1,5 +1,10 @@ {$mode objfpc} {$h+} + +{$if not defined(linux) or not defined(cpui386)} + {$error The KernelDefs unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). } +{$endif} + unit kerneldefs; interface diff --git a/packages/libc/src/kernelioctl.pp b/packages/libc/src/kernelioctl.pp index 7a2e55356c..bdbbb608be 100644 --- a/packages/libc/src/kernelioctl.pp +++ b/packages/libc/src/kernelioctl.pp @@ -1,6 +1,10 @@ {$mode objfpc} {$h+} +{$if not defined(linux) or not defined(cpui386)} + {$error The KernelIoctl unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). } +{$endif} + Unit kernelioctl; Interface diff --git a/packages/libc/src/libc.pp b/packages/libc/src/libc.pp index 8eb1c968b3..201cd44a82 100644 --- a/packages/libc/src/libc.pp +++ b/packages/libc/src/libc.pp @@ -1,6 +1,11 @@ {$mode objfpc} {$inline on} {$h+} + +{$if not defined(linux) or not defined(cpui386)} + {$error The KernelDefs unit is a legacy Kylix-compatibility unit that is only supported on Linux/i386. It is known not to work in various ways on other OSes and architectures (including Linux/x86_64). } +{$endif} + unit libc; Interface |
