Projects
Eulaceura:Factory
libmcrypt
_service:obs_scm:libmcrypt-c99.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:libmcrypt-c99.patch of Package libmcrypt
Add return and argument types to fake prototypes in mcrypt_symb.c. This avoids build failures with future compilers that do not support implicit function declarations. Submitted upstream: <https://sourceforge.net/p/mcrypt/patches/15/> diff --git a/lib/Makefile.am b/lib/Makefile.am index a1a09578858aaf3c..a92f150627a1f610 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -23,8 +23,8 @@ mcrypt_symb.c: mcrypt_internal.h @echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c @echo "" >> mcrypt_symb.c -@for i in $(EXTRA_ALGOS); do \ - if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ - if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ + if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern void "$$3"(void);";}' >> mcrypt_symb.c 2>/dev/null; fi; \ + if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern void "$$3"(void);";}' >> mcrypt_symb.c 2>/dev/null; fi; \ done @echo "" >> mcrypt_symb.c @echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c diff --git a/lib/Makefile.in b/lib/Makefile.in index 1baaa1e94be1abce..e0e690d1c831370f 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -561,8 +561,8 @@ mcrypt_symb.c: mcrypt_internal.h @echo "/* This is automatically created. Don't touch... */" >> mcrypt_symb.c @echo "" >> mcrypt_symb.c -@for i in $(EXTRA_ALGOS); do \ - if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ - if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern "$$3"();";}' >> mcrypt_symb.c 2>/dev/null; fi; \ + if test -f ../modules/algorithms/$$i.c; then cat ../modules/algorithms/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern void "$$3"(void);";}' >> mcrypt_symb.c 2>/dev/null; fi; \ + if test -f ../modules/modes/$$i.c; then cat ../modules/modes/$$i.c 2>/dev/null|grep define|grep LTX|awk '{print "extern void "$$3"(void);";}' >> mcrypt_symb.c 2>/dev/null; fi; \ done @echo "" >> mcrypt_symb.c @echo "const mcrypt_preloaded mps[] = {" >> mcrypt_symb.c
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2