ports/graphics/hiptext/files/patch-artiste.cc
Po-Chuan Hsieh 9e1564bdc2
graphics/hiptext: Fix LICENSE
Reference:	da18b54c61
Approved by:	portmgr (blanket)
2024-03-09 22:07:22 +08:00

19 lines
573 B
C++

--- artiste.cc.orig 2016-06-21 21:09:17 UTC
+++ artiste.cc
@@ -9,6 +9,7 @@
#include <sys/ioctl.h>
#include <sys/termios.h>
#include <sys/select.h>
+#include <unistd.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
@@ -166,7 +167,7 @@ void Artiste::PrintMovie(Movie movie) {
ComputeDimensions(RatioOf(movie.width(), movie.height()));
movie.PrepareRGB(width_, height_);
HideCursor();
- sighandler_t old_handler = signal(SIGINT, OnCtrlC);
+ sig_t old_handler = signal(SIGINT, OnCtrlC);
for (auto graphic : movie) {
if (g_done) {
break;