summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2002-12-11 05:03:13 +0000
committerguy <guy>2002-12-11 05:03:13 +0000
commit25f801371cc432591f838c72ebe1b2fba2e14ce9 (patch)
treed1e1ed6c0720d2d6a3f634e18766f7cd9fca4bfb
parent5c9aea35c4b5b459de73ee484197e345fc2bec7b (diff)
downloadtcpdump-25f801371cc432591f838c72ebe1b2fba2e14ce9.tar.gz
Add "os-osf4.h" to declare "snprintf()" on Digital UNIX 4.x.
-rw-r--r--FILES1
-rw-r--r--lbl/os-osf4.h26
2 files changed, 27 insertions, 0 deletions
diff --git a/FILES b/FILES
index a32826b6..603fca67 100644
--- a/FILES
+++ b/FILES
@@ -45,6 +45,7 @@ ipx.h
isakmp.h
l2tp.h
lane.h
+lbl/os-osf4.h
lbl/os-solaris2.h
lbl/os-sunos4.h
lbl/os-ultrix4.h
diff --git a/lbl/os-osf4.h b/lbl/os-osf4.h
new file mode 100644
index 00000000..5682b7e6
--- /dev/null
+++ b/lbl/os-osf4.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 1993, 1994, 1995, 1996, 1997
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that: (1) source code distributions
+ * retain the above copyright notice and this paragraph in its entirety, (2)
+ * distributions including binary code include the above copyright notice and
+ * this paragraph in its entirety in the documentation or other materials
+ * provided with the distribution, and (3) all advertising materials mentioning
+ * features or use of this software display the following acknowledgement:
+ * ``This product includes software developed by the University of California,
+ * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
+ * the University nor the names of its contributors may be used to endorse
+ * or promote products derived from this software without specific prior
+ * written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @(#) $Header: /tcpdump/master/tcpdump/lbl/os-osf4.h,v 1.1 2002-12-11 05:03:13 guy Exp $ (LBL)
+ */
+
+/* Prototypes missing in Digital UNIX 4.x */
+int snprintf(char *, size_t, const char *, ...);
+int vsnprintf(char *, size_t, const char *, va_list);