1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/devel/astyle/files/patch-src_astyle__main.cpp
Mark Linimon 6d919e81a8 Fix CXX assignment and add new includes to fix build on GCC-based
architectures.

PR:		232734
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
2019-01-02 09:09:50 +00:00

14 lines
395 B
C++

--- ../../src/astyle_main.cpp.orig 2018-11-28 00:32:16.924868000 +0100
+++ ../../src/astyle_main.cpp 2018-11-28 00:33:36.071105000 +0100
@@ -46,6 +46,10 @@
#ifdef _WIN32
#undef UNICODE // use ASCII windows functions
#include <windows.h>
+#elif defined(__FreeBSD__)
+ #include <dirent.h>
+ #include <sys/syslimits.h>
+ #include <unistd.h>
#else
#include <dirent.h>
#include <unistd.h>