Permalink
Browse files

further osx compilation fixes

  • Loading branch information...
wrl committed Apr 11, 2012
1 parent 8ba2808 commit dfb91b31c5411ae560011006027c310c0e80fbed
Showing with 3 additions and 1 deletion.
  1. +2 −1 src/detector/iokitlib.c
  2. +1 −0 src/supervisor/posix.c
View
@@ -41,9 +41,10 @@ static void send_connect(const char *devnode)
{
sosc_ipc_msg_t msg = {
.type = SOSC_DEVICE_CONNECTION,
- .connection = {.devnode = (char *) devnode}
};
+ msg.connection.devnode = (char *) devnode;
+
sosc_ipc_msg_write(STDOUT_FILENO, &msg);
}
View
@@ -15,6 +15,7 @@
*/
#define _POSIX_SOURCE
+#define _C99_SOURCE /* OSX wants this for snprintf */
#include <stdlib.h>
#include <stdio.h>

0 comments on commit dfb91b3

Please sign in to comment.