X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjattach.git;a=blobdiff_plain;f=src%2Fposix%2Fpsutil.h;fp=src%2Fposix%2Fpsutil.h;h=5dc3040dc7722c8921e5c83aaba75a8bad0edaab;hp=fa1c4169ad8925ec334da8dc08214eab18e9420c;hb=443b80898c49b466100dffc328ea8905887af2a1;hpb=98ce3928a99273b631c525a81df022e6f8ec46a7 diff --git a/src/posix/psutil.h b/src/posix/psutil.h index fa1c416..5dc3040 100644 --- a/src/posix/psutil.h +++ b/src/posix/psutil.h @@ -1,5 +1,5 @@ /* - * Copyright 2021 Andrei Pangin + * Copyright jattach authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #define MAX_PATH 1024 extern char tmp_path[]; @@ -43,4 +47,8 @@ int get_process_info(int pid, uid_t* uid, gid_t* gid, int* nspid); // -1, if the attempt failed. int enter_ns(int pid, const char* type); +#ifdef __cplusplus +} +#endif + #endif // _PSUTIL_H