BULK: Fix tests.
[pwmd.git] / src / pwmd-error.h
blobe642ba4f0ae65801763734012c65d5304ee4d6a0
1 /*
2 Copyright (C) 2006-2018 Ben Kibbey <bjk@luxsci.net>
4 This file is part of pwmd.
6 Pwmd is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
11 Pwmd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef PWMD_ERROR_H
20 #define PWMD_ERROR_H
22 #ifdef GPG_ERR_SOURCE_DEFAULT
23 #error "GPG_ERR_SOURCE_DEFAULT already defined."
24 #else
25 #define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_USER_1
26 #endif
28 #include <gpg-error.h>
29 #include <pthread.h>
31 pthread_key_t last_error_key;
32 const char *pwmd_strerror (gpg_error_t rc);
34 #endif