unbroke the crio build by converting it to build.py
diff --git a/aos/common/common.gyp b/aos/common/common.gyp
index fab82a2..d53b75f 100644
--- a/aos/common/common.gyp
+++ b/aos/common/common.gyp
@@ -117,7 +117,7 @@
'queue.cc',
],
'conditions': [
- ['OS=="crio"', {
+ ['PLATFORM=="crio"', {
'dependencies': [
'<(EXTERNALS):WPILib',
],
@@ -247,7 +247,7 @@
'target_name': 'mutex',
'type': 'static_library',
'conditions': [
- ['OS=="crio"', {
+ ['PLATFORM=="crio"', {
'sources': [
'<(AOS)/crio/shared_libs/mutex.cpp',
],
diff --git a/aos/common/util/inet_addr.cc b/aos/common/util/inet_addr.cc
index f202f6e..48bde1d 100644
--- a/aos/common/util/inet_addr.cc
+++ b/aos/common/util/inet_addr.cc
@@ -3,9 +3,17 @@
#include <stdlib.h>
#ifndef __VXWORKS__
#include <string.h>
-#endif
#include "aos/common/byteorder.h"
+#else
+
+template<typename T>
+T hton(T);
+
+template<uint32_t>
+uint32_t hton(uint32_t v) { return v; }
+
+#endif
namespace aos {
namespace util {