summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/mmap.cc4
-rw-r--r--apt-pkg/contrib/strutl.cc4
2 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index ef6b96d6a..b5c1320e6 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: mmap.cc,v 1.17 1999/08/02 03:07:47 jgg Exp $
+// $Id: mmap.cc,v 1.18 1999/08/28 01:49:07 jgg Exp $
/* ######################################################################
MMap Class - Provides 'real' mmap or a faked mmap using read().
@@ -35,6 +35,8 @@
#include <fcntl.h>
/*}}}*/
+#undef _POSIX_SYNCHRONIZED_IO
+
// MMap::MMap - Constructor /*{{{*/
// ---------------------------------------------------------------------
/* */
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index 17a23709b..1af8c4304 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: strutl.cc,v 1.28 1999/08/02 03:07:48 jgg Exp $
+// $Id: strutl.cc,v 1.29 1999/08/28 01:49:08 jgg Exp $
/* ######################################################################
String Util - Some usefull string functions.
@@ -713,7 +713,7 @@ static int HexDigit(int c)
bool Hex2Num(const char *Start,const char *End,unsigned char *Num,
unsigned int Length)
{
- if (End - Start != Length*2)
+ if (End - Start != (signed)(Length*2))
return false;
// Convert each digit. We store it in the same order as the string