mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Check for setproctitle_init, as old versions of libbsd don't have one. Reported-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Acked-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
19 lines
395 B
C
19 lines
395 B
C
#ifndef __CR_SETPROCTITLE_H__
|
|
#define __CR_SETPROCTITLE_H__
|
|
|
|
#ifdef CONFIG_HAS_LIBBSD
|
|
#include <bsd/unistd.h>
|
|
#else
|
|
|
|
/*
|
|
* setproctitle_init is in the libbsd since v0.6.0. This macro allows to
|
|
* compile criu with libbsd<0.6.0.
|
|
*/
|
|
#ifndef CONFIG_HAS_SETPROCTITLE_INIT
|
|
#define setproctitle_init(argc, argv, envp)
|
|
#endif
|
|
|
|
#define setproctitle(fmt, ...)
|
|
#endif
|
|
|
|
#endif /* __CR_SETPROCTITLE_H__ */
|