ports/science/pcmsolver/files/patch-src_cavity_GePolCavity.cpp
Piotr Kubaj d7abb1940f science/pcmsolver: fix build on GCC architectures
Use C++11 compiler.
Respect CC and CXX.

Include sys/types.h before including headers to make gid_t, uid_t available.

PR:		241465
Approved by:	yuri (maintainer), linimon (mentor)
2019-10-27 19:19:07 +00:00

18 lines
379 B
C++

--- src/cavity/GePolCavity.cpp.orig 2019-10-24 12:25:02 UTC
+++ src/cavity/GePolCavity.cpp
@@ -21,6 +21,7 @@
* PCMSolver API, see: <http://pcmsolver.readthedocs.io/>
*/
+#include <sys/types.h>
#include "GePolCavity.hpp"
#include <algorithm>
@@ -32,7 +33,6 @@
#include <string>
#include <vector>
-#include <sys/types.h>
#include <unistd.h>
#include "Config.hpp"