drivers: vector: Fix PX4 SITL x86 compilation

This commit is contained in:
Peter van der Perk
2024-04-01 22:05:20 -04:00
committed by Daniel Agar
parent 4889ac0ebb
commit 127d74f2e1
4 changed files with 8 additions and 2 deletions
@@ -11,6 +11,10 @@
#include "vn/util/export.h"
#include "vn/types.h"
#ifndef UNUSED
#define UNUSED(x) (void)(sizeof(x))
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -2,8 +2,6 @@
#include <string.h>
#include "vn/util.h"
//#define UNUSED(x) (void)(sizeof(x))
VnError VnSpi_genGenericCommand(
char cmdId,
char* buffer,
@@ -1,7 +1,9 @@
/* Enable IEEE Std 1003.1b-1993 functionality required for clock_gettime. */
#if defined(__linux__) || defined(__NUTTX__)
/* Works for Ubuntu 15.10 */
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
#endif
#elif defined __CYGWIN__
/* Works for Cygwin 2.4.0 64-bit */
#define _POSIX_TIMERS 1
@@ -1,7 +1,9 @@
/* Enable IEEE Std 1003.1b-1993 functionality required for clock_gettime. */
#if defined(__linux__) || defined(__NUTTX__)
/* Works for Ubuntu 15.10 */
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
#endif
#elif defined __CYGWIN__
/* Works for Cygwin 2.4.0 64-bit */
#define _POSIX_TIMERS 1