Skip to content

Commit 919cb1d

Browse files
committed
WIP: fake unix_stream_connect() and unix_stream_listen()
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent aca05cd commit 919cb1d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ ifndef NO_UNIX_SOCKETS
13391339
LIB_OBJS += unix-socket.o
13401340
PROGRAM_OBJS += credential-cache.o
13411341
PROGRAM_OBJS += credential-cache--daemon.o
1342+
BASIC_CFLAGS += -DNO_UNIX_SOCKETS
13421343
endif
13431344

13441345
ifdef NO_ICONV

unix-socket.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#ifndef UNIX_SOCKET_H
22
#define UNIX_SOCKET_H
33

4+
#ifdef NO_UNIX_SOCKETS
5+
#define unix_stream_connect(x) -1
6+
#define unix_stream_listen(x) -1
7+
#else
48
int unix_stream_connect(const char *path);
59
int unix_stream_listen(const char *path);
10+
#endif
611

712
#endif /* UNIX_SOCKET_H */

0 commit comments

Comments
 (0)