[mythtv] [PATCH] lcddevice.cpp missing include for usleep

sbower at cisco.com sbower at cisco.com
Sun Oct 24 03:02:21 UTC 2004


A recent update to lcddevice.cpp added a call to usleep(), but the
headers don't include a definition for it.

Attached is a patch that adds a #include <unistd.h> (required on rh9, at


I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/local/packages/mythtv/mythtv-cvs/include -I/usr/local/include -I/usr/lib/qt-3.1/include -o lcddevice.o lcddevice.cpp
lcddevice.cpp: In member function `bool LCD::connectToHost(const QString&, 
   unsigned int)':
lcddevice.cpp:127: `usleep' undeclared (first use this function)
lcddevice.cpp:127: (Each undeclared identifier is reported only once for each 
   function it appears in.)
make[2]: *** [lcddevice.o] Error 1
make[2]: Leaving directory `/home/sbower/src/mythtv/mythtv/libs/libmyth'
make[1]: *** [sub-libmyth] Error 2
make[1]: Leaving directory `/home/sbower/src/mythtv/mythtv/libs'
make: *** [sub-libs] Error 2
-------------- next part --------------
Index: libs/libmyth/lcddevice.cpp
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/lcddevice.cpp,v
retrieving revision 1.33
diff -u -r1.33 lcddevice.cpp
--- libs/libmyth/lcddevice.cpp  23 Oct 2004 20:00:03 -0000      1.33
+++ libs/libmyth/lcddevice.cpp  24 Oct 2004 01:31:15 -0000
@@ -15,6 +15,7 @@
 #include <qapplication.h>
 #include <qregexp.h>
+#include <unistd.h>
 #define LCD_START_COL 3

More information about the mythtv-dev mailing list