fcntl.h 545 B

12345678910111213141516
  1. /*
  2. * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "sdkconfig.h"
  8. #ifdef LWIP_HDR_LINUX_SYS_SOCKETS_H
  9. // only if we prefer linux system sockets, include from system paths
  10. #include_next <fcntl.h>
  11. #elif CONFIG_IDF_TARGET_LINUX
  12. // need to declare, as on linux we bypass IDF vfs and wrap posix io functions
  13. extern int fcntl(int s, int cmd, ...);
  14. #endif
  15. // ignore otherwise (typically included from lwipopts.h) since lwip provides all necessary definitions