[dns-operations] [PATCH] dnscap on OS X
    Florian Weimer 
    fw at deneb.enyo.de
       
    Fri May 18 09:53:50 UTC 2007
    
    
  
* Mark Santcroos:
> Attached patch makes dnscap work on OS X.
>
> That is without -g functionality, haven't looked into the libbind
> linking yet.
I don't understand the motivation for this change.
+	struct timeval * tvp = NULL;
+#ifdef __APPLE__
+	struct timeval tv;
+
+	tvp = &tv;
+	bzero(&tv, sizeof(struct timeval));
+	tv.tv_usec = TO_MS;
+#endif
It's pretty fundamental that select with a NULL timeout blocks
indefinitely, so I suppose this works on OS X, too.  What are you
trying to accomplish?
    
    
More information about the dns-operations
mailing list