Skip to content

Commit 311e5d1

Browse files
committed
Fix C++ building
1 parent 0e70ac2 commit 311e5d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ancillary.h

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
#ifndef ANCILLARY_H__
3232
#define ANCILLARY_H__
3333

34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif
37+
3438
/***************************************************************************
3539
* Start of the readable part.
3640
***************************************************************************/
@@ -120,4 +124,8 @@ ancil_recv_fd(int, int *);
120124
* Returns : -1 and errno in case of error, 0 in case of success.
121125
*/
122126

127+
#ifdef __cplusplus
128+
}
129+
#endif
130+
123131
#endif /* ANCILLARY_H__ */

0 commit comments

Comments
 (0)