1293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh/*
2293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * Copyright (C) 2013 The Android Open Source Project
3293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * All rights reserved.
4293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *
5293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * Redistribution and use in source and binary forms, with or without
6293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * modification, are permitted provided that the following conditions
7293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * are met:
8293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *  * Redistributions of source code must retain the above copyright
9293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *    notice, this list of conditions and the following disclaimer.
10293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *  * Redistributions in binary form must reproduce the above copyright
11293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *    notice, this list of conditions and the following disclaimer in
12293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *    the documentation and/or other materials provided with the
13293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *    distribution.
14293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh *
15293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh * SUCH DAMAGE.
27293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh */
28293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#ifndef NDK_ANDROID_SUPPORT_ERRNO_H
29293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#define NDK_ANDROID_SUPPORT_ERRNO_H
30293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh
31293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#include_next <errno.h>
32293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh
33f5cff9096ff6649d5cf429547e217c3f1a502d13Andrew Hsieh#if !defined(__LP64__)
34f5cff9096ff6649d5cf429547e217c3f1a502d13Andrew Hsieh
35293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#if !defined(ENOTRECOVERABLE)
36293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#error ENOTRECOVERABLE is not defined
37293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#endif
38293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh
39293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#define ELAST ENOTRECOVERABLE
40f5cff9096ff6649d5cf429547e217c3f1a502d13Andrew Hsieh#endif // !__LP64__
41293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh
42293624950fe14bbd43136f46496cbf983ac97fd5Andrew Hsieh#endif  /* NDK_ANDROID_SUPPORT_ERRNO_H */
43