summaryrefslogtreecommitdiffstats
path: root/src/sudo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sudo.h')
-rw-r--r--src/sudo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sudo.h b/src/sudo.h
index 58085fe..fce6f3c 100644
--- a/src/sudo.h
+++ b/src/sudo.h
@@ -20,5 +20,11 @@
*/
#ifdef SUDO_BIN
+#ifdef __cplusplus
+extern "C" {
+#endif
void run_sudo(int argc, char **argv);
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
#endif