feat: cosmopolitan libc support

Added support for cosmopolitan libc.
Simply do `make COSMO=yes` and you'll get feuille.com, a working
αcτµαlly pδrταblε εxεcµταblε pastebin server.

+ version bump.
This commit is contained in:
Tom MTT 2022-12-11 01:59:08 +01:00
parent 63319d7525
commit 16f516d6ce
9 changed files with 86 additions and 27 deletions

2
bin.c
View file

@ -13,11 +13,13 @@
#include "bin.h"
#ifndef COSMOPOLITAN
#include <errno.h> /* for errno */
#include <stdio.h> /* for NULL, fclose, fopen, fputs, snprintf, FILE */
#include <stdlib.h> /* for calloc, free, malloc, rand, realloc */
#include <string.h> /* for strlen */
#include <unistd.h> /* for access, F_OK */
#endif
#include "feuille.h" /* for Settings, settings */