diff options
author | Frank Morgner <morgner@informatik.hu-berlin.de> | 2013-05-16 13:32:49 +0200 |
---|---|---|
committer | Frank Morgner <morgner@informatik.hu-berlin.de> | 2013-05-16 15:02:59 +0200 |
commit | 8a759ad3db77a47b635f335e66f9c167a0c221ad (patch) | |
tree | a847f3d5c5b6be74bf194a61c53e6d3659633421 /libasn1compiler | |
parent | 101c26db7958d819df1b675d7a3b40293b2ca3fa (diff) |
try to link symlink and use a define on error
fixes compiling with Minimalist GNU win32 (cross) compiler 4.2.1, which
defines symlink, but doesn't implement it.
Diffstat (limited to 'libasn1compiler')
-rw-r--r-- | libasn1compiler/asn1c_save.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c index d71db199..f3cfcdf2 100644 --- a/libasn1compiler/asn1c_save.c +++ b/libasn1compiler/asn1c_save.c @@ -6,6 +6,10 @@ #include "asn1c_save.h" #include "asn1c_out.h" +#ifndef HAVE_SYMLINK +#define symlink(a,b) (errno=ENOSYS, -1) +#endif + #define HINCLUDE(s) \ ((arg->flags & A1C_INCLUDES_QUOTED) \ ? fprintf(fp_h, "#include \"%s\"\n", s) \ |