diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h
index 9a1f66f8535c515874218ea0b86f62b1feb9acf8..2b578ac6d9fe37dff8cf03ba7c9542de5520682d 100644
--- a/modules/gui/macosx/intf.h
+++ b/modules/gui/macosx/intf.h
@@ -24,6 +24,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+#   include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 #include <vlc_playlist.h>