X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcommon.h;h=00925984f7b19c7243289baacf29ebf7c0b081e9;hb=3923caae28f0a0bf34aed603b3c3b477c7fa255f;hp=a690149a1a175b330435dcf82fa990b471d5b699;hpb=d0f77e15cfa58191a7683caf343037c25be9f31c;p=matches%2FMCTX3420.git diff --git a/server/common.h b/server/common.h index a690149..0092598 100644 --- a/server/common.h +++ b/server/common.h @@ -10,6 +10,11 @@ #define _BSD_SOURCE #define _XOPEN_SOURCE 600 +/** Determine if we're running on the BBB **/ +#ifdef __arm__ +#define _BBB +#endif + /** The current API version **/ #define API_VERSION 0 @@ -26,6 +31,7 @@ #include "log.h" #include "fastcgi.h" +#include "control.h" /**Converts a timeval to a double**/ #define TIMEVAL_TO_DOUBLE(tv) ((tv).tv_sec + 1e-6 * ((tv).tv_usec)) @@ -33,4 +39,6 @@ #define TIMEVAL_DIFF(tv1, tv2) ((tv1).tv_sec - (tv2).tv_sec + 1e-6 * ((tv1).tv_usec - (tv2).tv_usec)) + + #endif //_COMMON_H