# New Ticket Created by  Dennis Rieks 
# Please include the string:  [perl #30395]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30395 >


Hi,

add this lines to config/gen/platform/generic/stat.h

I think that no win32/stat.[c|h] file is needed, mingw and cygwin have (i 
think...) S_ISBLK, S_ISCHR and S_ISDIR so this is an VC and not an win32 
problem (Ok, native win32 but not every target that is win32)
Maybe we need an additional compiler based system?
Like config/gen/compiler/vc6 config/gen/compiler/gcc ...

With this patch parrot compile and link now on win32/vc6
But there are some other problems...

Dennis

#ifndef S_IFMT
#   ifdef _S_IFMT
#       define S_IFMT _S_IFMT
#   else
#       define S_IFMT 0170000
#   endif
#endif

#ifndef S_IFMT
#  ifdef _S_IFMT
#    define S_IFMT _S_IFMT
#  else
#    define S_IFMT 0170000
#  endif
#endif

#ifndef S_IFBLK
# define S_IFBLK 0060000
#endif

#ifndef S_ISBLK
#  define S_ISBLK(m) ((m & S_IFMT) == S_IFBLK)
#endif

#ifndef S_ISCHR
#  define S_ISCHR(m) ((m & S_IFMT) == S_IFCHR)
#endif

#ifndef S_ISDIR
#  define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
#endif

--
Dennis Rieks
[EMAIL PROTECTED]

Reply via email to