]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Declare "strsep()" along with the other string routines we provide for
authorguy <guy>
Tue, 25 Mar 2003 08:33:34 +0000 (08:33 +0000)
committerguy <guy>
Tue, 25 Mar 2003 08:33:34 +0000 (08:33 +0000)
ourselves on platforms that lack them.

interface.h

index 73b650adb00bfef31a958cbd7dd4dd03dd5d418f..884d727c30059ae921e7fc038dcdb57f23fa12ad 100644 (file)
@@ -18,7 +18,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.206 2003-03-08 08:55:34 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.207 2003-03-25 08:33:34 guy Exp $ (LBL)
  */
 
 #ifndef tcpdump_interface_h
@@ -59,6 +59,10 @@ extern size_t strlcpy(char *, const char *, size_t);
 extern char *strdup(const char *);
 #endif
 
+#ifndef HAVE_STRSEP
+extern char *strsep(char **, const char *);
+#endif
+
 struct tok {
        int v;                  /* value */
        const char *s;          /* string */