This repository contains a fork of the libfetch library from the FreeBSD project. The goal of the fork is to add support for more platforms, in particular OpenBSD support.
# Clone
git clone https://github.com/0x1eef/libfetch
cd libfetch
# Build static library
make libfetch.a
# Build shared library
make libfetch.so
# Install into /usr/local/
make install
# Deinstall libfetch from /usr/local/
make deinstall
- Improve build environment (Makefile, etc).
- Add C functions absent on OpenBSD:
strnstr
,strchrnul
. - Add
#define
directives absent on OpenBSD (seeinclude/fetch.h
). - Remove socket option absent on OpenBSD (
SO_NOSIGPIPE
). - Remove references to
__FBSDID
.