[libdispatch-dev] Solaris portability, patch for internal.h, include strings.h for bzero in queue.c

Joakim Johansson jocke at tbricks.com
Mon Nov 9 05:01:33 PST 2009

bzero() is used in queue.c and is available from strings.h, needs an  
include for it.

As all includes seems aggregated into internal.h, I added it there  
rather than directly into queue.c to keep the style consistent.


Index: /home/jocke/gcd/trunk/src/internal.h
--- /home/jocke/gcd/trunk/src/internal.h	(revision 142)
+++ /home/jocke/gcd/trunk/src/internal.h	(working copy)
@@ -116,6 +119,7 @@
  #include <string.h>
  #include <syslog.h>
  #include <unistd.h>
+#include <strings.h>

  #define DISPATCH_NOINLINE	__attribute__((noinline))

More information about the libdispatch-dev mailing list