d371431b09ee29373cf24d57f387f8dd0bee4ab9 markd Wed Aug 17 17:10:30 2016 -0700 changed to compile on OS/X diff --git src/hg/hgTablesTest/hgTablesTest.c src/hg/hgTablesTest/hgTablesTest.c index ed491f9..1c97772 100644 --- src/hg/hgTablesTest/hgTablesTest.c +++ src/hg/hgTablesTest/hgTablesTest.c @@ -8,30 +8,35 @@ #include "hash.h" #include "htmshell.h" #include "portable.h" #include "options.h" #include "errCatch.h" #include "ra.h" #include "htmlPage.h" #include "../hgTables/hgTables.h" #include "hdb.h" #include "qa.h" #include "chromInfo.h" #include "obscure.h" #include <unistd.h> #include <limits.h> +#ifndef HOST_NAME_MAX +// needed for OS/X +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + #define MAX_ATTEMPTS 10 /* Command line variables. */ char *clOrg = NULL; /* Organism from command line. */ char *clDb = NULL; /* DB from command line */ char *clGroup = NULL; /* Group from command line. */ char *clTrack = NULL; /* Track from command line. */ char *clTable = NULL; /* Table from command line. */ int clGroups = BIGNUM; /* Number of groups to test. */ int clTracks = 4; /* Number of track to test. */ int clTables = 2; /* Number of tables to test. */ int clDbs = 1; /* Number of databases per organism. */ int clOrgs = 2; /* Number of organisms to test. */ boolean appendLog; /* Append to log rather than create it. */