qt5: undefine major and minor since old glibc defined them
diff --git a/qt5/src/poppler-version.h.in b/qt5/src/poppler-version.h.in
index 9dd3c1e..35645fe 100644
--- a/qt5/src/poppler-version.h.in
+++ b/qt5/src/poppler-version.h.in
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2009, Pino Toscano <pino@kde.org>
- * Copyright (C) 2018, Albert Astals Cid <aacid@kde.org>
+ * Copyright (C) 2018, 2019, Albert Astals Cid <aacid@kde.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,6 +24,12 @@
 
 #include <QString>
 
+// glibc < 2.28 used to include sys/sysmacros.h
+// from sys/types.h and sysmacros.h defines minor and major so
+// undefine them. You may need to undefine them in your code too.
+#undef minor
+#undef major
+
 #define POPPLER_VERSION "@POPPLER_VERSION@"
 #define POPPLER_VERSION_MAJOR @POPPLER_MAJOR_VERSION@
 #define POPPLER_VERSION_MINOR @POPPLER_MINOR_VERSION@