Hello,
I'm very new to OpenWRT developing, sorry if I disturb you.
I'm trying to port a traffic generator to my WRT54GL, and so I'm trying to write a correct Makefile to make the .IPK.

When compiling, SDK gives me the following error:
/home/gabriele/openwrt/sdk/staging_dir_mipsel/bin/mipsel-linux-uclibc-g++ -DLINUX_OS -Wall -Wno-deprecated    -c -o common/serial.o common/serial.cpp
common/serial.cpp:74:21: stropts.h: No such file or directory

Actually, "stropts.h" is a C++ library, and is not included on "staging_dir_mipsel/include/" directory. Have I to copy in that directory, or have I to add some row to this code, maybe including some others libraries?

define Build/Compile   
    $(MAKE) -C $(PKG_BUILD_DIR)/src \
        $(TARGET_CONFIGURE_OPTS) \
        CXX="/home/gabriele/openwrt/sdk/staging_dir_mipsel/bin/mipsel-linux-uclibc-g++" \
        CXXFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="-luClibc++ -lc -lm -lgcc -lpthread -g -lncurses" \
        all
    touch $@

Thank you very much and sorry if you lose time for me.
Gabriele