: nply/foundationpkgs

commit bbfc82fa2b2a4e5ea81540295943b9d8cc920213
parent 271a2c1a1d2430ccc55f299c4b1118dfce34377b
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 19:58:14 +0530

Declare pledge in packaged header
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Unix/libpledge/APKBUILD b/Unix/libpledge/APKBUILD
@@ -21,5 +21,6 @@ build() {
 package() {
 	install -Dm644 libpledge.a "$pkgdir/usr/lib/libpledge.a"
 	install -Dm644 libc/calls/pledge.h "$pkgdir/usr/include/pledge.h"
+	printf '\nint pledge(const char *, const char *);\n' >>"$pkgdir/usr/include/pledge.h"
 	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
diff --git a/pacscripts/libpledge/PKGBUILD b/pacscripts/libpledge/PKGBUILD
@@ -20,5 +20,6 @@ package() {
 	cd pledge
 	install -Dm644 libpledge.a "$pkgdir/usr/lib/libpledge.a"
 	install -Dm644 libc/calls/pledge.h "$pkgdir/usr/include/pledge.h"
+	printf '\nint pledge(const char *, const char *);\n' >>"$pkgdir/usr/include/pledge.h"
 	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
diff --git a/pacscripts/libpledge/pledge.pacscript b/pacscripts/libpledge/pledge.pacscript
@@ -20,5 +20,6 @@ package() {
 	cd pledge
 	install -Dm644 libpledge.a "$pkgdir/usr/lib/libpledge.a"
 	install -Dm644 libc/calls/pledge.h "$pkgdir/usr/include/pledge.h"
+	printf '\nint pledge(const char *, const char *);\n' >>"$pkgdir/usr/include/pledge.h"
 	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }