-----Original Message----- From: Ben Bullock
/usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE/reentr.h:109:26: fatal
error: crypt.h: No such file or directory
 #       include <crypt.h>
                         ^
compilation terminated.

If it helps, I don't have x86_64 cygwin, but line 109 of my
cygwin/lib/perl5/5.14/i686-cygwin-threads-64int/CORE/reentr.h is:

#       include <crypt.h>

It's wrapped in an #ifdef:

#ifdef I_CRYPT
#   ifdef I_CRYPT
#       include <crypt.h>
#   endif

For me, I_CRYPT is defined and crypt.h is located in:

cygwin/usr/include

I can run this Inline::C script:

#################
use strict;
use warnings;

use Inline C => Config =>
 DIRECTORY => './_Inline';

use Inline C => <<'EOC';

void foo() {

#ifdef I_CRYPT
#       include <crypt.h>
    printf("I_CRYPT defined\n");
#else
    printf("I_CRYPT not defined\n");
#endif

}

EOC

foo();
####################

and it outputs:

I_CRYPT defined

Cheers,
Rob



Reply via email to