[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.49.2.8 and 1.49.2.10

version 1.49.2.8, 2013/10/05 20:30:05 version 1.49.2.10, 2013/11/21 01:53:48
Line 34 
Line 34 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   
 #if defined(__linux__) || defined(__sun)  #if defined(__APPLE__)
 # include <endian.h>  
 # include <db_185.h>  
 #elif defined(__APPLE__)  
 # include <libkern/OSByteOrder.h>  # include <libkern/OSByteOrder.h>
 # include <db.h>  #elif defined(__linux__)
   # include <endian.h>
   #elif defined(__sun)
   # include <sys/byteorder.h>
   # include <sys/stat.h>
 #else  #else
 # include <sys/endian.h>  # include <sys/endian.h>
 # include <db.h>  
 #endif  #endif
   
 #if defined(__sun)  #if defined(__linux__) || defined(__sun)
 #include <sys/stat.h>  # include <db_185.h>
   #else
   # include <db.h>
 #endif  #endif
   
 #include "man.h"  #include "man.h"
Line 734  index_merge(const struct of *of, struct mparse *mp,
Line 736  index_merge(const struct of *of, struct mparse *mp,
                         }                          }
                         buf_appendb(buf, ")", 2);                          buf_appendb(buf, ")", 2);
                         for (p = buf->cp; '\0' != *p; p++)                          for (p = buf->cp; '\0' != *p; p++)
                                 *p = tolower(*p);                                  *p = tolower((unsigned char)*p);
                         key.data = buf->cp;                          key.data = buf->cp;
                         key.size = buf->len;                          key.size = buf->len;
                         val.data = NULL;                          val.data = NULL;

Legend:
Removed from v.1.49.2.8  
changed lines
  Added in v.1.49.2.10

CVSweb