Error in bits/stat.h

i have a piece of code to be compiled but unfortunately i keep getting the below error

/usr/include/bits/stat.h:88: error: field �st_atim' has incomplete type
/usr/include/bits/stat.h:89: error: field �st_mtim' has incomplete type
/usr/include/bits/stat.h:90: error: field �st_ctim' has incomplete type
/usr/include/bits/stat.h:149: error: field �st_atim' has incomplete type
/usr/include/bits/stat.h:150: error: field �st_mtim' has incomplete type
/usr/include/bits/stat.h:151: error: field �st_ctim' has incomplete type

I understand that there is something wrong with my time.h or stat.h, but how do i correct it.

We need to see your #include statements. Sometimes the order of included files is important.