diff --git a/include/zephyr/posix/fcntl.h b/include/zephyr/posix/fcntl.h index 874f3ee08f8dde..9689d1ae8c3fbf 100644 --- a/include/zephyr/posix/fcntl.h +++ b/include/zephyr/posix/fcntl.h @@ -27,7 +27,15 @@ #define F_GETFL 3 #define F_SETFL 4 +#ifdef __cplusplus +extern "C" { +#endif + int open(const char *name, int flags, ...); int fcntl(int fildes, int cmd, ...); +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_POSIX_FCNTL_H_ */ diff --git a/include/zephyr/posix/net/if.h b/include/zephyr/posix/net/if.h index 67d42800225fe1..a8d6183cf80467 100644 --- a/include/zephyr/posix/net/if.h +++ b/include/zephyr/posix/net/if.h @@ -8,4 +8,12 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_INCLUDE_POSIX_NET_IF_H_ */ diff --git a/include/zephyr/posix/netinet/tcp.h b/include/zephyr/posix/netinet/tcp.h index a5f50ab741242d..775fe992b02e55 100644 --- a/include/zephyr/posix/netinet/tcp.h +++ b/include/zephyr/posix/netinet/tcp.h @@ -8,4 +8,12 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_INCLUDE_POSIX_NETINET_TCP_H_ */