summaryrefslogtreecommitdiff
path: root/src/_copyright/_copyright.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/_copyright/_copyright.c')
-rw-r--r--src/_copyright/_copyright.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_copyright/_copyright.c b/src/_copyright/_copyright.c
index 9f0ad9785..072998345 100644
--- a/src/_copyright/_copyright.c
+++ b/src/_copyright/_copyright.c
@@ -20,7 +20,9 @@
#include <string.h>
#include <unistd.h>
#include <getopt.h>
+
#include <freeswan.h>
+#include <library.h>
char usage[] = "Usage: ipsec _copyright";
struct option opts[] = {
@@ -40,6 +42,9 @@ main(int argc, char *argv[])
const char **notice = ipsec_copyright_notice();
const char **co;
+ library_init(NULL);
+ atexit(library_deinit);
+
while ((opt = getopt_long(argc, argv, "", opts, NULL)) != EOF)
switch (opt) {
case 'h': /* help */