File: caddr.diff

package info (click to toggle)
libcommoncpp2 1.8.1-6.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,272 kB
  • ctags: 4,532
  • sloc: cpp: 29,219; sh: 10,352; ansic: 1,134; makefile: 232; xml: 5
file content (16 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: include <sys/types.h>

--- a/inc/cc++/file.h
+++ b/inc/cc++/file.h
@@ -93,10 +93,7 @@
 
 typedef unsigned long pos_t;
 #ifndef WIN32
-// use a define so that if the sys/types.h header already defines caddr_t
-// as it may on BSD systems, we do not break it by redefining again.
-#undef  caddr_t
-#define caddr_t char *
+#include <sys/types.h>
 typedef size_t ccxx_size_t;
 #else
 #if !defined(__BORLANDC__) || __BORLANDC__ >= 0x0560