Skip to content

Commit 59c9232

Browse files
carenasgitster
authored andcommitted
simple-ipc: move definition of ipc_active_state outside of ifdef
Move the declartion of the `enum ipc_active_state` type outside of the SUPPORTS_SIMPLE_IPC ifdef. A later commit will introduce the `fsmonitor_ipc__*()` API and stub in a "mock" implementation that requires this enum in some function signatures. Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a3e2033 commit 59c9232

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

simple-ipc.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
* See Documentation/technical/api-simple-ipc.txt
66
*/
77

8-
#ifdef SUPPORTS_SIMPLE_IPC
9-
#include "pkt-line.h"
10-
11-
/*
12-
* Simple IPC Client Side API.
13-
*/
14-
158
enum ipc_active_state {
169
/*
1710
* The pipe/socket exists and the daemon is waiting for connections.
@@ -43,6 +36,13 @@ enum ipc_active_state {
4336
IPC_STATE__OTHER_ERROR,
4437
};
4538

39+
#ifdef SUPPORTS_SIMPLE_IPC
40+
#include "pkt-line.h"
41+
42+
/*
43+
* Simple IPC Client Side API.
44+
*/
45+
4646
struct ipc_client_connect_options {
4747
/*
4848
* Spin under timeout if the server is running but can't

0 commit comments

Comments
 (0)