Commits
- Commit:
0fc3012cbeb3ab386febc7c43684f849c69dc674
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
Revert "portable: HOST_NAME_MAX"
This reverts commit 0835bf10ee863d91a617270780cd79c405c6a992.
- Commit:
0835bf10ee863d91a617270780cd79c405c6a992
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: HOST_NAME_MAX
On non-linux systems, as well as FreeBSD/MacOS, HOST_NAME_MAX isn't
available. But it is defined a part of _SC, so we can use that.
- Commit:
8d60d668faa58a809d2f1244697a7a5e285951b7
- From:
- Thomas Adam <ThomasAdam@users.noreply.github.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: fix getopt check
Rather than always asserting our version of getopt(2), only do so
if it lacks certain features.
Some of the configure.ac changes have come from openssh-portable.
- Commit:
8cff5e95a33fae159bff83b798f8c0425e2aff5c
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: OpenBSD compilation fixes
- Commit:
68069cf6014c5bd18aba4f3fa754c793c6740b3d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: fixes for NetBSD
* Move the main incldue/got_compat.h to the top of the files they're
included in.
* Define SHA256Init and friends to the system equivalents.
- Commit:
7ef51333b72702bfc0ec3a9ea6ea950ec7cdf7a8
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: cleanup headers
Remove useless headers which don't need to be included any longer.
- Commit:
206be139b57622a9d9d2fe28a7d2c1eb62109136
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: improve b64_ntop detection
When looking for base64 functions, check -lresolv and/or -lnetwork, and
only build those in compat if required.
Some of the detection code was modified from tmux's configure.ac script.
- Commit:
d9b944c72df6401d9aa2cdf40a196bb1b6066113
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add missing header checks
Some code in compat/ has #defines which were not being checked for in
configure.ac, which could have lead to compilation failures were those
files to be included on systems which needed them.
In doing so, we can now remove libmd and libcrypto as these are no
longer needed.
- Commit:
40d5394383d9283d2c0b04b41ba26bb6e2105a9e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: use SHA_2{,56}_H
Don't use a custom variable when the header checks for these are already
available.
From Christian "naddy" Weisgerber.
- Commit:
c2417a8ec6a4fad60404fd1eb3a338f0f3fdaa58
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: alpine: include stdlib.h
Because musl is less forgiving about header-ordering, explicitly include
this before stdio.h -- this won't affect existing files as the include
guards elsewhere prevent this.
- Commit:
1ef7c68a194549db7b9f945ef5910cb5394d4cc6
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: extend got_compat2 include guard
Extend the include guard to the whole file.
- Commit:
4fccd2fe0ffbbc668b66abe63614470635f92f1b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: split out dependencies
Rather than assume all dependencies are required for all programs, split
them out.
This will make packaging easier, as well as splitting the code to use
subprojects.
Note that due to the use of config.h semantics, in most cases the
got_compat.h header file is now at the top of the .c file it is included
in, so that it can handle the system header inclusion properly.
- Commit:
47dc83f5bed376c49b704738968d3f44c8e01d1e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: use config.h
So that the command-line flags to CC don't get drowned out with copious
-D flags, move this detection to config.h instead.
Note that to reduce the code churn, the existing include/got_compat.h
header file has been renamed, and the generated file replaces it, but
with the contents of the original header file included.
Eventually, we might want to move some od the logic in
include/got_compat2.h into AH_VERBATIM() blocks, but for now, this is a
good compromise.