blob: ed832e912f0c9bbd2438563af34ff3561ed4ac72 [file] [log] [blame]
Tanguy Pruvot57d44792011-11-16 20:01:59 +01001/*
maxwen27116ba2015-08-14 21:41:28 +02002 * Copyright (C) 2014 The Android Open Source Project
Tanguy Pruvot57d44792011-11-16 20:01:59 +01003 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <errno.h>
30
maxwen27116ba2015-08-14 21:41:28 +020031#ifdef __LP64__
Tanguy Pruvot57d44792011-11-16 20:01:59 +010032
maxwen27116ba2015-08-14 21:41:28 +020033/* __set_errno was mistakenly exposed in <errno.h> in the 32-bit NDK.
34 * but is no more present for 64-bit targets!
35 */
36
37long __set_errno(int n)
Tanguy Pruvot57d44792011-11-16 20:01:59 +010038{
39 errno = n;
40 return -1;
41}
42
maxwen27116ba2015-08-14 21:41:28 +020043#endif