summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Schmidt <yath@yath.de>2014-05-17 06:57:47 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-05-22 18:18:13 +0200
commitd287a035e07030be13f72265d4d0812086c323f5 (patch)
tree1062e22f4bad72049d99297649789ac776c3f009
parent0eb4af9d3d0c524c7afdc684238aa263ac287449 (diff)
fix screen width detection for apt/apt-get lists
3163087b moved SigWinch(int) from apt-get.cc to private-output.cc without moving #include <sys/ioctl.h>, making SigWinch a nop. Closes: 748430, 747942
-rw-r--r--apt-private/private-output.cc1
-rw-r--r--cmdline/apt-get.cc1
2 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc
index 7f3eef6c2..32f27a3dd 100644
--- a/apt-private/private-output.cc
+++ b/apt-private/private-output.cc
@@ -23,6 +23,7 @@
#include <langinfo.h>
#include <unistd.h>
#include <signal.h>
+#include <sys/ioctl.h>
#include <apti18n.h>
/*}}}*/
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 566103f8c..0f18b0e7c 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -76,7 +76,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>