1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 00:17:46 +00:00

Ports: Add libassuan port

This commit is contained in:
Gunnar Beutner 2021-04-14 04:32:19 +02:00 committed by Andreas Kling
parent 700cad4508
commit c3aac8cbe7
5 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -Naur libassuan-2.5.5/build-aux/config.sub libassuan-2.5.5.serenity/build-aux/config.sub
--- libassuan-2.5.5/build-aux/config.sub 2016-07-13 19:01:14.000000000 +0200
+++ libassuan-2.5.5.serenity/build-aux/config.sub 2021-04-14 02:35:26.315797397 +0200
@@ -1381,7 +1381,7 @@
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -serenity* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* | -plan9* \

View file

@ -0,0 +1,11 @@
diff -Naur libassuan-2.5.5/src/assuan-socket.c libassuan-2.5.5.serenity/src/assuan-socket.c
--- libassuan-2.5.5/src/assuan-socket.c 2021-04-14 02:38:16.911542870 +0200
+++ libassuan-2.5.5.serenity/src/assuan-socket.c 2021-04-14 02:37:37.497571703 +0200
@@ -34,6 +34,7 @@
#endif
#else
# include <sys/types.h>
+# include <sys/time.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>

View file

@ -0,0 +1,16 @@
diff -Naur libassuan-2.5.5/src/system-posix.c libassuan-2.5.5.serenity/src/system-posix.c
--- libassuan-2.5.5/src/system-posix.c 2021-04-14 02:40:14.020341296 +0200
+++ libassuan-2.5.5.serenity/src/system-posix.c 2021-04-14 02:39:56.823341349 +0200
@@ -412,7 +412,12 @@
__assuan_socketpair (assuan_context_t ctx, int namespace, int style,
int protocol, assuan_fd_t filedes[2])
{
+#ifndef __serenity__
return socketpair (namespace, style, protocol, filedes);
+#else
+ errno = ENOTSUP;
+ return -1;
+#endif
}