]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Define ssize_t on Windows.
authorGuy Harris <[email protected]>
Sun, 21 Jul 2019 18:38:51 +0000 (11:38 -0700)
committerGuy Harris <[email protected]>
Sun, 21 Jul 2019 18:38:51 +0000 (11:38 -0700)
netdissect-stdinc.h

index 8f1e5727642d04687887f0a9fe2fc86ae3a14bb3..5aef8234c44ef4fcdc57c5975fe503e027c69732 100644 (file)
   #ifndef strdup
     #define strdup _strdup
   #endif
+
+  /*
+   * Windows doesn't have ssize_t; routines such as _read() return int.
+   */
+  typedef int ssize_t;
 #endif  /* _MSC_VER */
 
 /*