diff options
author | June McEnroe <june@causal.agency> | 2019-12-23 16:26:43 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-12-23 16:26:43 -0500 |
commit | 405f502a07ed696c13a720e5e6af4071be839a21 (patch) | |
tree | 3e5ee277b2a29e5f96f73f0e7490fdd79513b904 /imbox.c | |
parent | Handle folded From headers (diff) | |
download | imbox-405f502a07ed696c13a720e5e6af4071be839a21.tar.gz imbox-405f502a07ed696c13a720e5e6af4071be839a21.zip |
Add (GNU/)Linux compatibility
Implements a dumb version of readpassphrase that calls getpass and implements funopen in terms of fopencookie.
Diffstat (limited to '')
-rw-r--r-- | imbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/imbox.c b/imbox.c index a55b09f..faa7a00 100644 --- a/imbox.c +++ b/imbox.c @@ -14,9 +14,10 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +#include "compat.h" + #include <ctype.h> #include <err.h> -#include <readpassphrase.h> #include <regex.h> #include <stdbool.h> #include <stdio.h> @@ -27,6 +28,10 @@ #include <tls.h> #include <unistd.h> +#ifndef NO_READPASSPHRASE_H +#include <readpassphrase.h> +#endif + #if !defined(DIG_PATH) && !defined(DRILL_PATH) # ifdef __FreeBSD__ # define DRILL_PATH "/usr/bin/drill" |