Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"minmax.h: No such file or directory" in VDR 0.67
Apparently the include file /usr/include/g++/minmax.h is missing
on some systems. The following patch to VDR's 'eit.c' makes it
work without this include file:
--- eit.c 2000/11/02 17:06:19
+++ eit.c 2000/11/02 19:19:06
@@ -24,7 +24,6 @@
#include <fstream.h>
#include <iomanip.h>
#include <iostream.h>
-#include <minmax.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -753,7 +752,7 @@
cEIT::cEIT(void * buf, int length, cSchedules *Schedules)
{
- buflen = min((unsigned int)length, sizeof(buffer));
+ buflen = length < int(sizeof(buffer)) ? length : sizeof(buffer);
memset(buffer, 0, sizeof(buffer));
memcpy(buffer, buf, buflen);
tid = buffer[0];
Sorry for the inconvenience...
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
Home |
Main Index |
Thread Index