aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2020-02-26 04:55:25 +0800
committersunpoet <sunpoet@FreeBSD.org>2020-02-26 04:55:25 +0800
commitc79112c771b058a78bfc75a6e569ca8b79ad3262 (patch)
tree443d40768dcd9bd5e94df6c0368e57b18c7d7cac
parent41c0041c4c49eaf52821a5bb2fc842909a9ba844 (diff)
downloadfreebsd-ports-gnome-c79112c771b058a78bfc75a6e569ca8b79ad3262.tar.gz
freebsd-ports-gnome-c79112c771b058a78bfc75a6e569ca8b79ad3262.tar.zst
freebsd-ports-gnome-c79112c771b058a78bfc75a6e569ca8b79ad3262.zip
Fix build with CGDISK enabled
PR: 244390 Reported by: John Hein <jcfyecrayz@liamekaens.com>
-rw-r--r--sysutils/gdisk/files/patch-gptcurses.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/gdisk/files/patch-gptcurses.cc b/sysutils/gdisk/files/patch-gptcurses.cc
new file mode 100644
index 000000000000..f773fed545b7
--- /dev/null
+++ b/sysutils/gdisk/files/patch-gptcurses.cc
@@ -0,0 +1,11 @@
+--- gptcurses.cc.orig 2020-02-17 22:34:11 UTC
++++ gptcurses.cc
+@@ -23,7 +23,7 @@
+ #include <iostream>
+ #include <string>
+ #include <sstream>
+-#ifdef __APPLE__
++#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
+ #include <ncurses.h>
+ #else
+ #include <ncursesw/ncurses.h>