diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-09-28 15:08:09 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-10-12 17:51:49 +0200 |
commit | 6346d1de2fdaa8a8359082871eac49402cb0e472 (patch) | |
tree | 62a057a2b8ab0b24bc242461522017e333fe741f /include | |
parent | 20c2ae39db3dd0ec4c337a9b0bd2bf4481b61e49 (diff) | |
download | mariadb-git-6346d1de2fdaa8a8359082871eac49402cb0e472.tar.gz |
MDEV-427/MDEV-5713 Add systemd script with notify functionality
After review/QA fixes.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_systemd.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/include/my_systemd.h b/include/my_systemd.h index b130c7f4412..bef75576422 100644 --- a/include/my_systemd.h +++ b/include/my_systemd.h @@ -1,17 +1,34 @@ +/* + Copyright (c) 2015 Daniel Black. All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/ + #ifndef MY_SYSTEMD_INCLUDED #define MY_SYSTEMD_INCLUDED #if defined(HAVE_SYSTEMD) && !defined(EMBEDDED_LIBRARY) +/* + sd-daemon.h may include inttypes.h. Explicitly request format macros before + the first inclusion of inttypes.h. +*/ +#define __STDC_FORMAT_MACROS #include <systemd/sd-daemon.h> - #else - - - #define sd_notify(X, Y) #define sd_notifyf(E, F, ...) - #endif #endif /* MY_SYSTEMD_INCLUDED */ |