Skip to content

Instantly share code, notes, and snippets.

@Erk-
Created September 20, 2020 14:35
Show Gist options
  • Save Erk-/ce52c073a86082cbd5ca8ad01a47a227 to your computer and use it in GitHub Desktop.
Save Erk-/ce52c073a86082cbd5ca8ad01a47a227 to your computer and use it in GitHub Desktop.
Fixes for mticlient on freebsd
diff -r mticlient-public/mticlient/Makefile mticlient-public-freebsd/mticlient/Makefile
40c40
< FV_LDFLAGS = -lcurl -lflexver -L`pwd`/../libflexver
---
> FV_LDFLAGS = -lcurl -lflexver -L`pwd`/../libflexver -L/usr/local/lib
42c42
< INCLUDE = -I../libflexver -I../thirdparty/micro-ecc/ -I../thirdparty/sha2/ -I../thirdparty/jsmn/ -I../thirdparty/b64/
---
> INCLUDE = -I../libflexver -I../thirdparty/micro-ecc/ -I../thirdparty/sha2/ -I../thirdparty/jsmn/ -I../thirdparty/b64/ -I/usr/local/include
Only in mticlient-public-freebsd/mticlient: mticlient
diff -r mticlient-public/mticlient/mticlient.c mticlient-public-freebsd/mticlient/mticlient.c
43c43,47
< #include <sys/io.h>
---
> //#include <sys/io.h>
> #ifdef __FreeBSD__
> #include <sys/wait.h>
> #include <netinet/in.h>
> #endif
50a55,56
> #include "/usr/local/include/curl/curl.h"
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment