I want to build a c file based on BlueZ but seems no bluetooth.h file in my system.
fatal error: bluetooth/bluetooth.h: No such file or directory
You need to install libbluetooth-dev package for compiling your code
sudo apt-get install libbluetooth-dev
That should install the bluetooth header files.
For Fedora, you can use:
sudo dnf install bluez-libs-devel