$NetBSD: patch-ag,v 1.1 2011/01/18 15:28:13 asau Exp $

Use uuidgen(2) on NetBSD.

--- unix/plugins/UUIDPlugin/sqUnixUUID.c.orig	2009-08-26 22:12:10.000000000 +0400
+++ unix/plugins/UUIDPlugin/sqUnixUUID.c	2011-01-18 01:02:30.000000000 +0300
@@ -1,4 +1,8 @@
 #include "config.h"
+#if defined(__NetBSD__)
+#include <sys/types.h>
+#include <sys/uuid.h>
+#endif
 #include <uuid.h>
 #include "sq.h"
 
@@ -15,7 +19,11 @@
 int MakeUUID(char *location)
 {
   uuid_t uuid;
+#if defined(__NetBSD__)
+  uuidgen(&uuid, 1);
+#else
   uuid_generate(uuid);
+#endif
   memcpy((void *)location, (void *)&uuid, sizeof(uuid));
   return 1;
 }
