Description: port for kFreeBSD
Author: Dmitrijs Ledkovs <xnox@debian.org>

Index: libinotify-kqueue/configure.ac
===================================================================
--- libinotify-kqueue.orig/configure.ac	2013-08-19 18:12:08.000000000 +0100
+++ libinotify-kqueue/configure.ac	2013-08-19 18:12:08.000000000 +0100
@@ -10,13 +10,14 @@
 *linux*)
    OS=Linux
    ;;
-*freebsd*)
+k*bsd*-gnu)
    OS=FreeBSD
    ;;
 esac
 
 AM_CONDITIONAL(LINUX, [test "$OS" = "Linux"])
 AM_CONDITIONAL(FREEBSD, [test "$OS" = "FreeBSD"])
+AC_DEFINE([__FreeBSD__],[9],[FreBSD version])
 
 
 AC_ARG_ENABLE([perrors],
Index: libinotify-kqueue/controller.c
===================================================================
--- libinotify-kqueue.orig/controller.c	2013-08-19 18:12:08.000000000 +0100
+++ libinotify-kqueue/controller.c	2013-08-19 18:12:08.000000000 +0100
@@ -31,6 +31,8 @@
 #include <sys/types.h>
 #include <sys/event.h>
 
+#include "config.h"
+
 #include "sys/inotify.h"
 
 #include "utils.h"
@@ -51,7 +53,7 @@
  * @return  -1 on failure, a file descriptor on success.
  **/
 INO_EXPORT int
-inotify_init (void) __THROW
+inotify_init (void)
 {
     pthread_mutex_lock (&workers_mutex);
 
@@ -102,7 +104,7 @@
 INO_EXPORT int
 inotify_add_watch (int         fd,
                    const char *name,
-                   uint32_t    mask) __THROW
+                   uint32_t    mask) 
 {
     pthread_mutex_lock (&workers_mutex);
 
@@ -158,7 +160,7 @@
  **/
 INO_EXPORT int
 inotify_rm_watch (int fd,
-                  int wd) __THROW
+                  int wd) 
 {
     assert (fd != -1);
     assert (wd != -1);
Index: libinotify-kqueue/utils.h
===================================================================
--- libinotify-kqueue.orig/utils.h	2013-08-19 18:12:08.000000000 +0100
+++ libinotify-kqueue/utils.h	2013-08-19 18:12:08.000000000 +0100
@@ -23,6 +23,7 @@
 #ifndef __UTILS_H__
 #define __UTILS_H__
 
+#include "config.h"
 #include <stdint.h> /* uint32_t */
 #include <pthread.h>
 
Index: libinotify-kqueue/tests/core/log.cc
===================================================================
--- libinotify-kqueue.orig/tests/core/log.cc	2013-08-19 18:14:58.000000000 +0100
+++ libinotify-kqueue/tests/core/log.cc	2013-08-19 18:15:18.000000000 +0100
@@ -20,6 +20,8 @@
   THE SOFTWARE.
 *******************************************************************************/
 
+#include "config.h"
+
 #include <pthread.h>
 #if defined(__FreeBSD__)
 #include <sys/types.h>
