Diff of /inotify.c [715af3] .. [773e1f] Maximize Restore

  Switch to side-by-side view

--- a/inotify.c
+++ b/inotify.c
@@ -16,6 +16,8 @@
  * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
  */
 #include "config.h"
+
+#ifdef HAVE_INOTIFY
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -216,8 +218,7 @@
 	{
 		last_w = w;
 		inotify_rm_watch(fd, w->wd);
-		if( w->path )
-			free(w->path);
+		free(w->path);
 		rm_watches++;
 		w = w->next;
 		free(last_w);
@@ -729,3 +730,4 @@
 
 	return 0;
 }
+#endif