gbiggs / flexiport

Flexible communications library.
GNU Lesser General Public License v3.0
5 stars 8 forks source link

gcc-4.7 build issue #2

Closed richmattes closed 12 years ago

richmattes commented 12 years ago

When building with gcc-4.7, sys/types.h needs to be explicitly included in flexiport_types.h. I've added the trivial diff below.

diff -up ./include/flexiport/flexiport_types.h.gcc47 ./include/flexiport/flexiport_types.h
--- ./include/flexiport/flexiport_types.h.gcc47 2012-05-25 22:24:56.118398545 -0400
+++ ./include/flexiport/flexiport_types.h       2012-05-25 22:25:12.838030652 -0400
@@ -39,6 +39,7 @@
     #endif
 #else
     #include <stdint.h>
+    #include <sys/types.h>
 #endif

 #endif // __FLEXIPORT_TYPES_H
gbiggs commented 12 years ago

Thanks for the patch. I've applied it in HEAD.