1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/posix/fcntl: fix headerguard

This commit is contained in:
Alexandre Abadie 2021-01-11 13:48:09 +01:00
parent 787c2debae
commit f496aef7cc
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -15,6 +15,9 @@
* @see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
*/
#ifndef FCNTL_H
#define FCNTL_H
#ifndef DOXYGEN
#if defined(CPU_NATIVE) || MODULE_NEWLIB || MODULE_PICOLIBC
/* If building on native or newlib we need to use the system header instead */
@ -22,8 +25,6 @@
/* without the GCC pragma above #include_next will trigger a pedantic error */
#include_next <fcntl.h>
#else
#ifndef FCNTL_H_
#define FCNTL_H_
#include <sys/types.h> /* for mode_t, off_t */
@ -67,9 +68,9 @@ int posix_fallocate(int, off_t, off_t);
}
#endif
#endif /* FCNTL_H_ */
#endif /* CPU_NATIVE */
#endif /* DOXYGEN */
#endif /* FCNTL_H */
/** @} */