mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +00:00
Fix the api-example.c compile under Linux
This commit is contained in:
parent
48681dd4bb
commit
824fd8fcad
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Compile:
|
/* Compile:
|
||||||
* gcc api-example.c -I compat/jansson -o cgminer-api
|
* gcc api-example.c -Icompat/jansson -Icompat/libusb-1.0/libusb -o cgminer-api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -32,7 +32,6 @@
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
#define SOCKETTYPE int
|
|
||||||
#define SOCKETFAIL(a) ((a) < 0)
|
#define SOCKETFAIL(a) ((a) < 0)
|
||||||
#define INVSOCK -1
|
#define INVSOCK -1
|
||||||
#define CLOSESOCKET close
|
#define CLOSESOCKET close
|
||||||
@ -140,8 +139,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RECVSIZE 65500
|
|
||||||
|
|
||||||
static const char SEPARATOR = '|';
|
static const char SEPARATOR = '|';
|
||||||
static const char COMMA = ',';
|
static const char COMMA = ',';
|
||||||
static const char EQ = '=';
|
static const char EQ = '=';
|
||||||
|
Loading…
Reference in New Issue
Block a user