Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created March 13, 2013 10:08
Show Gist options
  • Select an option

  • Save holysugar/5150766 to your computer and use it in GitHub Desktop.

Select an option

Save holysugar/5150766 to your computer and use it in GitHub Desktop.
stone コンパイル用 patch
diff --git a/Makefile.orig b/Makefile
index 460b774..9c21b9e 100644
--- a/Makefile.orig
+++ b/Makefile
@@ -97,7 +97,7 @@ svc_stone: logmsg.rc $(SVC_LIBS)
$(MAKE) FLAGS="-DNT_SERVICE $(FLAGS)" LIBS="$(LIBS) $(SVC_LIBS) -ladvapi32 -luser32 -lshell32 -lkernel32" $(TARGET)
linux:
- $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL $(FLAGS)" LIBS="-lpthread $(LIBS)" stone
+ $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL -D_GNU_SOURCE $(FLAGS)" LIBS="-lpthread $(LIBS)" stone
linux-pop:
$(MAKE) TARGET=linux pop_stone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment