aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gdisk
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-02-25 20:55:25 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-02-25 20:55:25 +0000
commit043f9de51c9faf0499b97df36eb4491d7f866980 (patch)
tree443d40768dcd9bd5e94df6c0368e57b18c7d7cac /sysutils/gdisk
parent087ce9edc574dd0202ff404bc3b89b075dfa6eb4 (diff)
downloadports-043f9de51c9faf0499b97df36eb4491d7f866980.tar.gz
ports-043f9de51c9faf0499b97df36eb4491d7f866980.zip
Fix build with CGDISK enabled
PR: 244390 Reported by: John Hein <jcfyecrayz@liamekaens.com>
Notes
Notes: svn path=/head/; revision=527130
Diffstat (limited to 'sysutils/gdisk')
-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>