Skip to content

Instantly share code, notes, and snippets.

@vidraj
vidraj / README.md
Created February 1, 2025 10:29
Headers for better C99/POSIX/GNU compatibility of HP-UX 11.11 systems

Headers for better C99/POSIX/GNU compatibility of HP-UX 11.11 systems

I used the header files below to make old HP-UX 11.11 (a.k.a. 11i v1) more compatible with modern software requiring newer POSIX standards and some GNU extensions. They can be used to bootstrap modern GCC starting with HP aCC and some ancient GCC versions.

The files in this gist are to be placed in /usr/local/include. The files sys -- stat.h and sys -- sendfile.h should be placed in /usr/local/include/sys as stat.h and sendfile.h, respectively.

@vidraj
vidraj / rust-bootstrap.md
Created March 10, 2024 15:49
How to cross-compile Rust for musl-based ppc and ppc64 Gentoo systems

How to cross-compile Rust for musl-based ppc and ppc64 Gentoo systems.

Right now, there are no prebuilt packages for Rust on ppc-musl and ppc64-musl, and bootstrap on the host machines (ppc or ppc64) cannot be done, because the Rust project doesn't publish the necessary prerequisite binary stage0s.

These targets are, however, supported by Rust, and it is possible to build binary packages of rustc by cross-compiling from a build system with a working Rust installation. After such bootstrap, Rust can be