1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

linux: Define feature macros to get required functions.

This is needed to build with -std=c99.
This commit is contained in:
Martin Ling 2014-08-24 13:34:33 +01:00
parent 7890cef6cf
commit c51b846eee

View File

@ -18,6 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __linux__
#define _BSD_SOURCE // for timeradd, timersub, timercmp
#define _XOPEN_SOURCE 700 // for readlinkat
#endif
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>