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 */
17 #ifndef _BIONIC_OPENBSD_COMPAT_H_included
18 #define _BIONIC_OPENBSD_COMPAT_H_included
20 #define __USE_BSD
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
34 /* OpenBSD has this, but we can't really implement it correctly on Linux. */
35 #define issetugid() 0
37 #endif