Skip to content

Instantly share code, notes, and snippets.

@wwiv
Last active February 3, 2018 04:58
Show Gist options
  • Save wwiv/a96c326fdf979f800b10501fccf7e606 to your computer and use it in GitHub Desktop.
Save wwiv/a96c326fdf979f800b10501fccf7e606 to your computer and use it in GitHub Desktop.
hacky way to make syncterm compile on mac
diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake
index 4588fbc..4bf00a2 100644
--- a/src/xpdev/Common.gmake
+++ b/src/xpdev/Common.gmake
@@ -203,3 +203,8 @@ ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
XPDEV-MT_LIBS += -ldl
XPDEV_LIBS += -ldl
endif
+
+ifeq ($(os),darwin) # Mac OS/X
+ XPDEV-MT_CFLAGS += -DXPDEV_DONT_DEFINE_INTTYPES -DUSE_SNPRINTF -DHAS_INTTYPES_H
+endif
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment