Open shakfu opened 2 years ago
Here's the solution:
add #include <unistd.h>
for close()
to s4pd.c
:
diff --git a/s4pd.c b/s4pd.c
index dd46ec0..70b437c 100644
--- a/s4pd.c
+++ b/s4pd.c
@@ -3,6 +3,7 @@
#include "s7.h"
#include "time.h"
#include <stdlib.h>
+#include <unistd.h> // for close
#define MAX_OUTLETS 32
#define MAX_ATOMS_PER_MESSAGE 1024
Thanks Shakfu, I'm honestly not much of a C dev, so can anyone weigh in on whether this is safe for other compilers and platforms to add or does it need to be in an #ifdef?
BTW. I do plan to go through my mess of warnings and get it clean later as I would like to set things up so that s4pd is easy to extend at a C level. :-)
Hi Iain,
Was just attempting to build for macOS after seeing your nice video (👍 ) and I got some errors (note that PDDIR is exported via
export PDDIR="/Applications/Studio/Pd-0.51-4.app/Contents/Resources"
):