diff --git a/Makefile.common b/Makefile.common
index 6604e1a868..ce45f80edd 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -83,6 +83,7 @@ ifneq ($(findstring Linux,$(OS)),)
frontend/drivers/platform_linux.o
endif
+
ifeq ($(findstring Haiku,$(OS)),)
LIBS += -lm
DEBUG_FLAG = -g
@@ -633,6 +634,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
ifeq ($(HAVE_VULKAN), 1)
OBJ += gfx/drivers_context/wayland_ctx_vulkan.o
endif
+ UNIX_COMMON=1
endif
ifeq ($(HAVE_GLES), 1)
@@ -660,6 +662,11 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += -DHAVE_GLSL
endif
+ifeq ($(UNIX_COMMON),1)
+ OBJ += gfx/common/unix_common.o
+endif
+
+
ifeq ($(HAVE_EGL), 1)
OBJ += gfx/common/egl_common.o
endif
diff --git a/gfx/common/unix_common.c b/gfx/common/unix_common.c
new file mode 100644
index 0000000000..82dd848062
--- /dev/null
+++ b/gfx/common/unix_common.c
@@ -0,0 +1,28 @@
+/* RetroArch - A frontend for libretro.
+ * Copyright (C) 2011-2016 - Daniel De Matteis
+ *
+ * RetroArch is free software: you can redistribute it and/or modify it under the terms
+ * of the GNU General Public License as published by the Free Software Found-
+ * ation, either version 3 of the License, or (at your option) any later version.
+ *
+ * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with RetroArch.
+ * If not, see .
+ */
+
+#include "unix_common.h"
+
+bool unix_common_ctl(enum unix_common_ctl_state state, void *data)
+{
+ switch (state)
+ {
+ default:
+ case UNIX_COMMON_NONE:
+ break;
+ }
+
+ return true;
+}
diff --git a/gfx/common/unix_common.h b/gfx/common/unix_common.h
new file mode 100644
index 0000000000..5a1fdf47c3
--- /dev/null
+++ b/gfx/common/unix_common.h
@@ -0,0 +1,28 @@
+/* RetroArch - A frontend for libretro.
+ * Copyright (C) 2011-2016 - Daniel De Matteis
+ *
+ * RetroArch is free software: you can redistribute it and/or modify it under the terms
+ * of the GNU General Public License as published by the Free Software Found-
+ * ation, either version 3 of the License, or (at your option) any later version.
+ *
+ * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with RetroArch.
+ * If not, see .
+ */
+
+#ifndef _UNIX_COMMON_H
+#define _UNIX_COMMON_H
+
+#include
+
+enum unix_common_ctl_state
+{
+ UNIX_COMMON_NONE = 0
+};
+
+bool unix_common_ctl(enum unix_common_ctl_state state, void *data);
+
+#endif