summaryrefslogtreecommitdiff
path: root/src/code-from-errno.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-08-22 19:08:08 +0200
committerWerner Koch <wk@gnupg.org>2014-08-25 16:37:46 +0200
commit216e7def2118a1774fa7ebeb45b8635b9fe6ba42 (patch)
treebcccb2ca1de195b79554f8d5fce6a77540829771 /src/code-from-errno.c
parent6714d41af5b3f4d447eb0caea0ede38b753397f8 (diff)
downloadlibgpg-error-216e7def2118a1774fa7ebeb45b8635b9fe6ba42.tar.gz
Implement symbol visibility.
* configure.ac: New option --enable-ld-version-script. (GPGRT_USE_VISIBILITY): New ac_define. (HAVE_LD_VERSION_SCRIPT): New am_conditional. * src/gpg-error.vers: New. * src/gpgrt-int.h: New. * src/visibility.c, src/visibility.h: New. Lot of changes to symbold names. -- This is only doe for the old API. The estream API needs to be added.
Diffstat (limited to 'src/code-from-errno.c')
-rw-r--r--src/code-from-errno.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code-from-errno.c b/src/code-from-errno.c
index 96fcf20..6064270 100644
--- a/src/code-from-errno.c
+++ b/src/code-from-errno.c
@@ -7,12 +7,12 @@
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
-
+
libgpg-error is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
-
+
You should have received a copy of the GNU Lesser General Public
License along with libgpg-error; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <errno.h>
+#include <errno.h>
#include <gpg-error.h>
@@ -32,7 +32,7 @@
GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped (report
this). */
gpg_err_code_t
-gpg_err_code_from_errno (int err)
+_gpg_err_code_from_errno (int err)
{
int idx;
@@ -52,7 +52,7 @@ gpg_err_code_from_errno (int err)
returns GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped
(report this) and GPG_ERR_MISSING_ERRNO if ERRNO has the value 0. */
gpg_err_code_t
-gpg_err_code_from_syserror (void)
+_gpg_err_code_from_syserror (void)
{
int err = errno;
int idx;