cc: Studio 12.6 Sun C 5.15 SunOS_i386 2017/05/30
"./seek-tell.c", line 57: warning: implicit function declaration: fseeko
"./seek-tell.c", line 63: warning: implicit function declaration: ftello
"./tcpslice.c", line 183: warning: implicit function declaration: getopt
"./tcpslice.c", line 205: warning: statement not reached
"./tcpslice.c", line 302: warning: implicit function declaration: fileno
v1.8 ...
+- Address a few warnings from Sun C.
v1.7 Tue 23 Jan 12:31:18 GMT 2024
#include <config.h>
#endif
+// For fseeko() and ftello().
+#if defined(__SUNPRO_C) && ! defined(__EXTENSIONS__)
+#define __EXTENSIONS__
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <config.h>
#endif
+// For fileno() and getopt().
+#if defined(__SUNPRO_C) && ! defined(__EXTENSIONS__)
+#define __EXTENSIONS__
+#endif
+
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
case 'h':
print_usage(stdout);
exit(0);
- break;
+ /* NOTREACHED */
case 'l':
relative_time_merge = 1;