Fix building
FossilOrigin-Name: 23ab87adce4f3c30bb7716de45bfb359c2cb8088243ac467acc2460e98bf0f37
This commit is contained in:
parent
edd7a36ae9
commit
c16d4d1e5a
2 changed files with 23 additions and 20 deletions
|
@ -58,7 +58,7 @@ target_compile_options(treebird PUBLIC
|
|||
|
||||
# hack is on me
|
||||
target_link_options(treebird PUBLIC
|
||||
-lmastodont
|
||||
# -lmastodont
|
||||
)
|
||||
|
||||
|
||||
|
@ -77,12 +77,17 @@ set(SRC_FILES
|
|||
src/key.c
|
||||
src/local_config.c
|
||||
src/local_config_set.c
|
||||
src/query.c
|
||||
src/string.c
|
||||
src/string_helpers.c
|
||||
src/request.c
|
||||
src/session.c
|
||||
src/path.c
|
||||
src/mime.c
|
||||
)
|
||||
|
||||
# Pages
|
||||
append_and_def(treebird PUBLIC SRC_FILES
|
||||
append_and_def(treebird PUBLIC ${SRC_FILES}
|
||||
src/about.c
|
||||
src/account.c
|
||||
src/applications.c
|
||||
|
@ -97,19 +102,14 @@ append_and_def(treebird PUBLIC SRC_FILES
|
|||
src/http.c
|
||||
src/index.c
|
||||
src/lists.c
|
||||
src/login.c
|
||||
src/memory_page.c
|
||||
src/mime.c
|
||||
src/notifications.c
|
||||
src/page_config.c
|
||||
src/path.c
|
||||
src/query.c
|
||||
src/request.c
|
||||
src/scrobble.c
|
||||
src/search.c
|
||||
src/session.c
|
||||
src/status.c
|
||||
src/timeline.c
|
||||
# src/login.c
|
||||
# src/memory_page.c
|
||||
# src/notifications.c
|
||||
# src/page_config.c
|
||||
# src/scrobble.c
|
||||
# src/search.c
|
||||
# src/status.c
|
||||
# src/timeline.c
|
||||
)
|
||||
|
||||
target_sources(treebird PUBLIC ${SRC_FILES})
|
||||
|
@ -123,5 +123,5 @@ target_include_directories(treebird PUBLIC
|
|||
target_link_libraries(treebird PUBLIC
|
||||
${PERL_LIBRARIES}
|
||||
${CURL_LIBRARIES}
|
||||
${MASTODONT_LIBRARIES}
|
||||
mastodont-c/libmastodont.a)
|
||||
|
||||
${MASTODONT_LIBRARIES})
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
#include "mime.h"
|
||||
#include "string.h"
|
||||
|
||||
char* get_mime_boundary(char* content_type_str, char** bound)
|
||||
char*
|
||||
get_mime_boundary(char* content_type_str, char** bound)
|
||||
{
|
||||
// If neither values are set, get out
|
||||
if (!content_type_str)
|
||||
|
@ -59,14 +60,16 @@ error:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static char* strnws(char* str)
|
||||
static char*
|
||||
strnws(char* str)
|
||||
{
|
||||
for (; isblank(*str); ++str);
|
||||
return str;
|
||||
}
|
||||
|
||||
// Function assumes character is at ';' char
|
||||
static char* read_key(char** r, char* key)
|
||||
static char*
|
||||
read_key(char** r, char* key)
|
||||
{
|
||||
char* val, *read_val;
|
||||
size_t key_len = strlen(key);
|
||||
|
|
Loading…
Reference in a new issue