Skip to content

Commit 973ec0a

Browse files
committed
* os/unix/unixd.h: Use extern "C" linkage.
PR: 37357 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@354389 13f79535-47bb-0310-9956-ffa450edef68
1 parent ab7be99 commit 973ec0a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

os/unix/unixd.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
#include <sys/ipc.h>
4949
#endif
5050

51+
#ifdef __cplusplus
52+
extern "C" {
53+
#endif
54+
5155
typedef struct {
5256
uid_t uid;
5357
gid_t gid;
@@ -113,5 +117,9 @@ AP_INIT_TAKE1("User", unixd_set_user, NULL, RSRC_CONF, \
113117
AP_INIT_TAKE1("Group", unixd_set_group, NULL, RSRC_CONF, \
114118
"Effective group id for this server")
115119

120+
#ifdef __cplusplus
121+
}
122+
#endif
123+
116124
#endif
117125
/** @} */

0 commit comments

Comments
 (0)