Search code examples
cincludesolaris

Unable to find sys/fdio.h (floppy disk control operations) on Solaris machine 5.11


I am compiling my application code on Solaris 5.11, Code is written in C.In the application code I used "fdio" related code. The Solaris box do not have that . How to get the sys/fdio package.

#include <stdio.h>
#include <sys/fdio.h>

int main()
{
  printf("Hello World");
}

"test1.c", line 2: cannot find include file:


Solution

  • The file is no longer available in Solaris 11. Here is a copy that will help you compile your code. Drop it in /usr/include/sys It is opensource so there should be a few copies out there.