diff -rupN --no-dereference gmsh-4.11.1-source/src/common/CommandLine.cpp gmsh-4.11.1-source-new/src/common/CommandLine.cpp
--- gmsh-4.11.1-source/src/common/CommandLine.cpp 2022-09-28 20:00:58.000000000 +0200
+++ gmsh-4.11.1-source-new/src/common/CommandLine.cpp 2022-12-21 15:34:04.306442038 +0100
@@ -42,7 +42,7 @@
#endif
#if defined(HAVE_MED)
-#include <med.h>
+#include <med/med.h>
#endif
#if defined(HAVE_POST)
diff -rupN --no-dereference gmsh-4.11.1-source/src/fltk/helpWindow.cpp gmsh-4.11.1-source-new/src/fltk/helpWindow.cpp
--- gmsh-4.11.1-source/src/fltk/helpWindow.cpp 2022-09-28 20:00:58.000000000 +0200
+++ gmsh-4.11.1-source-new/src/fltk/helpWindow.cpp 2022-12-21 15:34:04.306442038 +0100
@@ -36,7 +36,7 @@
#endif
#if defined(HAVE_MED)
-#include <med.h>
+#include <med/med.h>
#endif
static const char *help_link(Fl_Widget *w, const char *uri)
diff -rupN --no-dereference gmsh-4.11.1-source/src/geo/GModelIO_MED.cpp gmsh-4.11.1-source-new/src/geo/GModelIO_MED.cpp
--- gmsh-4.11.1-source/src/geo/GModelIO_MED.cpp 2022-10-19 11:45:57.000000000 +0200
+++ gmsh-4.11.1-source-new/src/geo/GModelIO_MED.cpp 2022-12-21 15:34:04.307442038 +0100
@@ -26,7 +26,7 @@
#include "discreteVertex.h"
#include "Context.h"
-#include <med.h>
+#include <med/med.h>
#if(MED_MAJOR_NUM >= 3)
// To avoid too many ifdefs below we use defines for the bits of the
diff -rupN --no-dereference gmsh-4.11.1-source/src/post/PViewDataGModelIO.cpp gmsh-4.11.1-source-new/src/post/PViewDataGModelIO.cpp
--- gmsh-4.11.1-source/src/post/PViewDataGModelIO.cpp 2022-09-28 20:01:01.000000000 +0200
+++ gmsh-4.11.1-source-new/src/post/PViewDataGModelIO.cpp 2022-12-21 15:34:04.307442038 +0100
@@ -542,7 +542,7 @@ void PViewDataGModel::importLists(int N[
#if defined(HAVE_MED)
-#include <med.h>
+#include <med/med.h>
#if(MED_MAJOR_NUM >= 3)
// To avoid too many ifdefs below we use defines for the bits of the