Dear List :
 
I got one driver  .
I cant make it for such an error ------"redefinition of ssize_t"
 
one definition(as follows) is from /usr/src/linux/include/linux/types.h
#ifndef _SSIZE_T
#define _SSIZE_T
typedef __kernel_ssize_t ssize_t;
#endif
 
another definition(as follows) is from /usr/include/unistd.h
#ifndef __ssize_t_defined
typedef __ssize_t ssize_t;
# define __ssize_t_defined
#endif
 

   
But for some historical reason ,different definitions use the same term-  ssize_t .
    Neglect the case of driver ,if one program  need both types.h & unistd.h.
How could I do ?
Could someone shed some light on it ?
 
 
Thanks in advance!
Henry

Reply via email to