blob: 8618e3104173532df5581e4fabc789eec96171b0 [file] [log] [blame]
Elliott Hughes01339442014-02-20 18:04:58 -08001/*
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 Hughesad41e9a2014-03-11 15:05:50 -070020#define __USE_BSD
Elliott Hughes01339442014-02-20 18:04:58 -080021
Elliott Hughesf3c73902014-04-18 10:29:16 -070022/* 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 Hughesb4e099c2014-05-29 16:04:53 -070034/* OpenBSD has this, but we can't really implement it correctly on Linux. */
35#define issetugid() 0
36
Elliott Hughes01339442014-02-20 18:04:58 -080037#endif