[gnu.g++.help] Mixing C and C++

pwang@MCS.KENT.EDU (04/20/91)

Our g++ compiler issues a warning after seeing the function name
``flock'' inside a extern "C" { ... }
and then seeing the

struct flock { ...
    ...
    };


in the fctlcomm.h header file on the SUN.
The warning is

flock declared `extern' and now declared again as `static' ...

Question:  Why is the second declaration of flock static?  How in general
to avoid such name conflicts when including C/UNIX header files?

Thanks.