$NetBSD: patch-ab,v 1.2 2011/12/08 20:41:47 marino Exp $

--- src/main.cpp.orig	2007-11-12 15:40:07.000000000 +0100
+++ src/main.cpp
@@ -32,7 +32,7 @@
  #include <unistd.h>		//access
 #endif
 
-#if defined (__FreeBSD__) || defined (__APPLE__)
+#if defined (__FreeBSD__) || defined (__APPLE__) || defined (__NetBSD__) || defined (__DragonFly__)
  #include <libgen.h>		//basename
 #endif
 
