errno.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*****************************************************************************
  2. * Copyright 2003 - 2008 Broadcom Corporation. All rights reserved.
  3. *
  4. * Unless you and Broadcom execute a separate written software license
  5. * agreement governing use of this software, this software is licensed to you
  6. * under the terms of the GNU General Public License version 2, available at
  7. * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
  8. *
  9. * Notwithstanding the above, under no circumstances may you combine this
  10. * software in any way with any other Broadcom software provided under a
  11. * license other than the GPL, without Broadcom's express prior written
  12. * consent.
  13. *****************************************************************************/
  14. #ifndef CSP_ERRNO_H
  15. #define CSP_ERRNO_H
  16. /* ---- Include Files ---------------------------------------------------- */
  17. #if defined(__KERNEL__)
  18. #include <linux/errno.h>
  19. #elif defined(CSP_SIMULATION)
  20. #include <asm-generic/errno.h>
  21. #else
  22. #include <errno.h>
  23. #endif
  24. /* ---- Public Constants and Types --------------------------------------- */
  25. /* ---- Public Variable Externs ------------------------------------------ */
  26. /* ---- Public Function Prototypes --------------------------------------- */
  27. #endif /* CSP_ERRNO_H */