Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-26 13:01:44 +00:00
parent 06412f62ef
commit c0b0ffdeb2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550178
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= super
PORTVERSION= 3.30.3
PORTREVISION= 1
CATEGORIES= security sysutils
MASTER_SITES= ftp://ftp.ucolick.org/pub/users/will/ \
http://www.ucolick.org/~will/RUE/super/

View File

@ -0,0 +1,11 @@
--- super.h.orig 2020-08-03 17:58:18 UTC
+++ super.h
@@ -290,7 +290,7 @@ typedef struct progList ProgList;
/* ========================================================================= */
#ifdef HAVE_ENUM
-enum {SUPER_AUTH_PASSWORD, SUPER_AUTH_PAM} Method;
+extern enum {SUPER_AUTH_PASSWORD, SUPER_AUTH_PAM} Method;
#else
/* No enums! */
#define SUPER_AUTH_PASSWORD 1