Description: Replace JoystickImpl.cpp code with dummy code on FreeBSD
 The joystick code in SFML assumes linux headers (sys/inotify.h and
 linux/joystick.h) which are not available in FreeBSD or GNU/Hurd.
 Until upstream can fix this, I've changed JoystickImpl.cpp to give
 a dummy implementation on FreeBSD and Hurd so that it compiles.
Author: James Cowgill <james410@cowgill.org.uk>
Last-Update: 2013-10-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/SFML/Window/Linux/JoystickImpl.cpp
+++ b/src/SFML/Window/Linux/JoystickImpl.cpp
@@ -27,12 +27,60 @@
 ////////////////////////////////////////////////////////////
 #include <SFML/Window/JoystickImpl.hpp>
 #include <SFML/System/Err.hpp>
-#include <sys/inotify.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <errno.h>
 #include <cstdio>
 
+#ifndef SFML_SYSTEM_LINUX
+
+// Dummy joystick implementation since there is no support for
+//  joysticks (yet) on FreeBSD and Hurd
+
+namespace sf
+{
+namespace priv
+{
+
+void JoystickImpl::initialize()
+{
+    err() << "Joystick support is not implemented on FreeBSD and GNU/Hurd" << std::endl;
+}
+
+void JoystickImpl::cleanup()
+{
+}
+
+bool JoystickImpl::isConnected(unsigned int index)
+{
+    return false;
+}
+
+bool JoystickImpl::open(unsigned int index)
+{
+    return false;
+}
+
+void JoystickImpl::close()
+{
+}
+
+JoystickCaps JoystickImpl::getCapabilities() const
+{
+    return JoystickCaps();
+}
+
+JoystickState JoystickImpl::JoystickImpl::update()
+{
+    return JoystickState();
+}
+
+} // namespace priv
+} // namespace sf
+
+#else
+
+#include <sys/inotify.h>
 
 namespace
 {
@@ -254,3 +302,5 @@
 } // namespace priv
 
 } // namespace sf
+
+#endif
