mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Fix build with -fno-common
This commit is contained in:
parent
7e1c61a2ad
commit
1782c583de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549574
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= pwman
|
||||
DISTVERSION= 0.4.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ./src/pwman.h.orig 2009-08-26 16:18:55.000000000 +0000
|
||||
+++ ./src/pwman.h 2010-09-14 02:40:40.029593205 +0000
|
||||
--- src/pwman.h.orig 2017-05-01 16:59:03 UTC
|
||||
+++ src/pwman.h
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <config.h>
|
||||
@ -8,3 +8,22 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#define CONF_FILE ".pwmanrc"
|
||||
@@ -112,12 +113,12 @@ typedef struct {
|
||||
int sign_db;
|
||||
} Options;
|
||||
|
||||
-Options *options;
|
||||
-int write_options;
|
||||
-PWList *pwlist;
|
||||
-PWList *current_pw_sublist;
|
||||
-PWSearchResult *search_results;
|
||||
-time_t time_base;
|
||||
+extern Options *options;
|
||||
+extern int write_options;
|
||||
+extern PWList *pwlist;
|
||||
+extern PWList *current_pw_sublist;
|
||||
+extern PWSearchResult *search_results;
|
||||
+extern time_t time_base;
|
||||
|
||||
char *trim_ws(char*);
|
||||
void debug(char*, ...);
|
||||
|
16
security/pwman/files/patch-src_actions.c
Normal file
16
security/pwman/files/patch-src_actions.c
Normal file
@ -0,0 +1,16 @@
|
||||
--- src/actions.c.orig 2017-05-01 16:59:03 UTC
|
||||
+++ src/actions.c
|
||||
@@ -23,6 +23,13 @@
|
||||
#include <pwman.h>
|
||||
#include <gnupg.h>
|
||||
|
||||
+Options *options;
|
||||
+int write_options;
|
||||
+PWList *pwlist;
|
||||
+PWList *current_pw_sublist;
|
||||
+PWSearchResult *search_results;
|
||||
+time_t time_base;
|
||||
+
|
||||
extern Pw * uilist_get_highlighted_item();
|
||||
extern PWList * uilist_get_highlighted_sublist();
|
||||
extern PWList * pwlist_new(char*);
|
Loading…
Reference in New Issue
Block a user