Elliott Hughes | 0133944 | 2014-02-20 18:04:58 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _BIONIC_OPENBSD_COMPAT_H_included |
| 18 | #define _BIONIC_OPENBSD_COMPAT_H_included |
| 19 | |
Elliott Hughes | ad41e9a | 2014-03-11 15:05:50 -0700 | [diff] [blame] | 20 | #define __USE_BSD |
Elliott Hughes | 0133944 | 2014-02-20 18:04:58 -0800 | [diff] [blame] | 21 | |
Elliott Hughes | f3c7390 | 2014-04-18 10:29:16 -0700 | [diff] [blame] | 22 | /* OpenBSD's <ctype.h> uses these names, which conflicted with stlport. |
| 23 | * Additionally, we changed the numeric/digit type from N to D for libcxx. |
| 24 | */ |
| 25 | #define _U _CTYPE_U |
| 26 | #define _L _CTYPE_L |
| 27 | #define _N _CTYPE_D |
| 28 | #define _S _CTYPE_S |
| 29 | #define _P _CTYPE_P |
| 30 | #define _C _CTYPE_C |
| 31 | #define _X _CTYPE_X |
| 32 | #define _B _CTYPE_B |
| 33 | |
Elliott Hughes | b4e099c | 2014-05-29 16:04:53 -0700 | [diff] [blame] | 34 | /* OpenBSD has this, but we can't really implement it correctly on Linux. */ |
| 35 | #define issetugid() 0 |
| 36 | |
Elliott Hughes | 0133944 | 2014-02-20 18:04:58 -0800 | [diff] [blame] | 37 | #endif |