1 //===----------------------- config_elast.h -------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_CONFIG_ELAST
11 #define _LIBCPP_CONFIG_ELAST
20 #define _LIBCPP_ELAST ELAST
21 #elif defined(_NEWLIB_VERSION)
22 #define _LIBCPP_ELAST __ELASTERROR
23 #elif defined(__linux__)
24 #define _LIBCPP_ELAST 4095
25 #elif defined(__APPLE__)
26 // No _LIBCPP_ELAST needed on Apple
27 #elif defined(__sun__)
28 #define _LIBCPP_ELAST ESTALE
30 #define _LIBCPP_ELAST _sys_nerr
32 // Warn here so that the person doing the libcxx port has an easier time:
33 #warning ELAST for this platform not yet implemented
36 #endif // _LIBCPP_CONFIG_ELAST