diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-26 15:46:11 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-26 15:46:11 -0500 |
commit | b7cc9b68ad0df14e976fa02e5eaa51149aac2414 (patch) | |
tree | 0b3414edda357534a157fc51180a4467d3b8b7a2 /miner.h | |
parent | 59f1fb2ec87b4a8e3d6608b405b6aa649b89db95 (diff) |
Replace argp with getopt_long
Diffstat (limited to 'miner.h')
-rw-r--r-- | miner.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4,6 +4,10 @@ #include <stdbool.h> #include <jansson.h> +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) +#endif + extern bool opt_protocol; extern json_t *json_rpc_call(const char *url, const char *userpass, const char *rpc_req); |