Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Commit

Permalink
add extern "C" for C++ compilations
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Trizna committed Aug 3, 2015
1 parent f1ec093 commit 53b9512
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/st_dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
#include <arpa/inet.h>
#include <netdb.h>

#ifdef __cplusplus
extern "C" {
#endif
extern int st_gethostbyname_r(const char *name, struct hostent **host);
#ifdef __cplusplus
}
#endif

0 comments on commit 53b9512

Please sign in to comment.