Skip to content

Commit

Permalink
lmbench_usage() needs a prototype
Browse files Browse the repository at this point in the history
libc no longer included RPC support. Therefore, need to change it to
handle where the header files have been moved to.
  • Loading branch information
BradWalker committed Apr 29, 2019
1 parent 957294f commit ef44cac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bench.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ typedef unsigned char bool_t;
#include <sys/un.h>
#include <sys/resource.h>
#define PORTMAP
#ifndef __linux__
#include <rpc/rpc.h>
#else
#include <tirpc/rpc/rpc.h>
#endif

#endif

#ifndef __linux__
#include <rpc/types.h>
#else
#include <tirpc/rpc/types.h>
#endif

#include <stdarg.h>
#ifndef HAVE_uint
Expand Down Expand Up @@ -260,6 +270,8 @@ extern int optopt;
extern char *optarg;
int getopt(int ac, char **av, char *opts);

void lmbench_usage(int argc, char *argv[], char* usage);

typedef u_long iter_t;
typedef void (*benchmp_f)(iter_t iterations, void* cookie);

Expand Down

0 comments on commit ef44cac

Please sign in to comment.