add FreeBSD support
[dpdk.git] / lib / librte_eal / common / eal_common_errno.c
index b238918..0243816 100644 (file)
@@ -53,7 +53,11 @@ rte_strerror(int errnum)
         * themselves if errnum is too big, we handle that case here */
        if (errnum > RTE_MAX_ERRNO)
                rte_snprintf(RTE_PER_LCORE(retval), RETVAL_SZ,
+#ifdef RTE_EXEC_ENV_BSDAPP
+                               "Unknown error: %d", errnum);
+#else
                                "Unknown error %d", errnum);
+#endif
        else
                switch (errnum){
                case E_RTE_SECONDARY: