aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2011-02-14 21:23:49 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2011-02-14 21:23:49 +0000
commit053bc187b1923f736363d2406a55e7a01a3d87d0 (patch)
tree88d85af31d2dfc61f433c0f4176e3fad99f23e32
parent44991cc69525ae780f9e96a60a129d33eb94cf3b (diff)
in macosx a unix socket connection must be to lo address 127.0.0.1, localhost seems to break something
svn path=/trunk/externals/pdvjtools/; revision=14925
-rw-r--r--pix_preview/pix_preview.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pix_preview/pix_preview.cc b/pix_preview/pix_preview.cc
index aee73c4..16ab6e2 100644
--- a/pix_preview/pix_preview.cc
+++ b/pix_preview/pix_preview.cc
@@ -152,7 +152,7 @@ CPPEXTERN_NEW_WITH_TWO_ARGS(pix_preview, t_floatarg, A_DEFFLOAT, t_floatarg, A_D
std::string str;
str = ostr.str();
- getaddrinfo("localhost", reinterpret_cast<const char*>(str.c_str()), &hints, &res);
+ getaddrinfo("127.0.0.1", reinterpret_cast<const char*>(str.c_str()), &hints, &res);
fprintf(stderr,"trying to connect...\n");
s = socket(res->ai_family, res->ai_socktype, 0);