parse.c, compare.c: Include string.h to fix gcc -Wall complaints.
gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors because some
required structures wouldn't be otherwise defined. Fix a minor gcc
-Wall nit in the declaration of get_random_fd().
+2001-05-01 Theodore Tso <tytso@valinux.com>
+
+ * parse.c, compare.c: Include string.h to fix gcc -Wall
+ complaints.
+
+ * gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors
+ because some required structures wouldn't be otherwise
+ defined. Fix a minor gcc -Wall nit in the declaration of
+ get_random_fd().
+
2001-01-12 Theodore Ts'o <tytso@valinux.com>
* uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints.
*/
#include "uuidP.h"
+#include <string.h>
#define UUCMP(u1,u2) if (u1 != u2) return((u1 < u2) ? -1 : 1);
* %End-Header%
*/
+/*
+ * Force inclusion of SVID stuff since we need it if we're compiling in
+ * gcc-wall wall mode
+ */
+#define _SVID_SOURCE
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#define rand() random()
#endif
-static int get_random_fd()
+static int get_random_fd(void)
{
struct timeval tv;
static int fd = -2;
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
#include "uuidP.h"